mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 14:54:20 +01:00
Make the LSN be properly defined in the in-memory logentry so rollback will work right. Fixes #304.
git-svn-id: file:///svn/tokudb@1843 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
970234a759
commit
fc5314ec6d
1 changed files with 1 additions and 0 deletions
|
@ -264,6 +264,7 @@ void generate_log_writer (void) {
|
|||
fprintf(cf, " if (lentry==0) return errno;\n");
|
||||
fprintf(cf, " if (0) { died0: toku_free(lentry); return r; }\n");
|
||||
fprintf(cf, " lentry->cmd = %d;\n", lt->command);
|
||||
fprintf(cf, " lentry->u.%s.lsn = toku_txn_get_last_lsn(txn);\n", lt->name);
|
||||
DO_FIELDS(ft, lt,
|
||||
({
|
||||
fprintf(cf, " r=toku_copy_%s(&lentry->u.%s.%s, %s);\n", ft->type, lt->name, ft->name, ft->name);
|
||||
|
|
Loading…
Add table
Reference in a new issue