Skip to content

Commit db5dc6f

Browse files
author
Aditya A
committed
Bug #21239299 MYSQL CRASHED BECAUSE OF FLUSH_ALL
Function call to start transaction was called inside the assert. Assert can be disabled by setting NDEBUG ,which will cause this function not to be executed and causes crashes later. FIX --- Call the function outside assert and do assert on the return value.
1 parent 1f8680a commit db5dc6f

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

plugin/innodb_memcached/innodb_memcache/src/innodb_engine.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -957,9 +957,11 @@ innodb_conn_init(
957957
conn_data->crsr_trx);
958958
}
959959

960-
assert(ib_cb_trx_start(conn_data->crsr_trx,
961-
engine->trx_level,
962-
true, false, NULL));
960+
err = ib_cb_trx_start(conn_data->crsr_trx,
961+
engine->trx_level,
962+
true, false, NULL);
963+
assert(err == DB_SUCCESS);
964+
963965
}
964966

965967
err = innodb_api_begin(

0 commit comments

Comments
 (0)