Commit 1f5029d3 authored by Bradley C. Kuszmaul's avatar Bradley C. Kuszmaul

Make the LSN be properly defined in the in-memory logentry so rollback will...

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
parent 1861f571
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment