Permalink
Browse files

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.
  • Loading branch information...
Aditya A
Aditya A committed Aug 3, 2015
1 parent 1f8680a commit db5dc6fd3abe855685a554bc3c555b1b63914b60
Showing with 5 additions and 3 deletions.
  1. +5 −3 plugin/innodb_memcached/innodb_memcache/src/innodb_engine.c
@@ -957,9 +957,11 @@ innodb_conn_init(
conn_data->crsr_trx);
}
assert(ib_cb_trx_start(conn_data->crsr_trx,
engine->trx_level,
true, false, NULL));
err = ib_cb_trx_start(conn_data->crsr_trx,
engine->trx_level,
true, false, NULL);
assert(err == DB_SUCCESS);
}
err = innodb_api_begin(

0 comments on commit db5dc6f

Please sign in to comment.