mirror of
https://github.com/MariaDB/server.git
synced 2025-02-02 03:51:50 +01:00
refs #5189 added comments about txns being null during tests
git-svn-id: file:///svn/toku/tokudb@45277 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
73bcbb4259
commit
fa3c118725
1 changed files with 4 additions and 0 deletions
|
@ -411,12 +411,16 @@ generate_log_writer (void) {
|
|||
fprintf(cf, " if (logger==0) return 0;\n");
|
||||
switch (lt->log_begin_action) {
|
||||
case SHOULD_LOG_BEGIN: {
|
||||
fprintf(cf, " //txn can be NULL during tests\n");
|
||||
fprintf(cf, " //txn can be also be NULL for suppress_rollback during checkpoint,\n");
|
||||
fprintf(cf, " //never null when not checkpoint.\n");
|
||||
fprintf(cf, " if (txn && !txn->begin_was_logged) {\n");
|
||||
fprintf(cf, " toku_maybe_log_begin_txn_for_write_operation(txn);\n");
|
||||
fprintf(cf, " }\n");
|
||||
break;
|
||||
}
|
||||
case ASSERT_BEGIN_WAS_LOGGED: {
|
||||
fprintf(cf, " //txn can be NULL during tests\n");
|
||||
fprintf(cf, " invariant(!txn || txn->begin_was_logged);\n");
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue