Commit d000732a authored by John Esmet's avatar John Esmet

fixes #151 Do not send commit messages for fractal tree update commands

parent 2e190e06
...@@ -115,6 +115,10 @@ PATENT RIGHTS GRANT: ...@@ -115,6 +115,10 @@ PATENT RIGHTS GRANT:
// for each FT_DELETE_ANY message sent earlier by the transaction? // for each FT_DELETE_ANY message sent earlier by the transaction?
#define TOKU_DO_COMMIT_CMD_DELETE 1 #define TOKU_DO_COMMIT_CMD_DELETE 1
// When a transaction is committed, should we send a FT_COMMIT message
// for each FT_UPDATE message sent earlier by the transaction?
#define TOKU_DO_COMMIT_CMD_UPDATE 0
int int
toku_commit_fdelete (FILENUM filenum, toku_commit_fdelete (FILENUM filenum,
TOKUTXN txn, TOKUTXN txn,
...@@ -296,11 +300,15 @@ toku_rollback_cmdinsert (FILENUM filenum, ...@@ -296,11 +300,15 @@ toku_rollback_cmdinsert (FILENUM filenum,
int int
toku_commit_cmdupdate(FILENUM filenum, toku_commit_cmdupdate(FILENUM filenum,
BYTESTRING key, BYTESTRING UU(key),
TOKUTXN txn, TOKUTXN txn,
LSN oplsn) LSN UU(oplsn))
{ {
#if TOKU_DO_COMMIT_CMD_UPDATE
return do_insertion(FT_COMMIT_ANY, filenum, key, 0, txn, oplsn, false); return do_insertion(FT_COMMIT_ANY, filenum, key, 0, txn, oplsn, false);
#else
return do_nothing_with_filenum(txn, filenum);
#endif
} }
int int
......
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