Commit dd5b315e authored by Barry Perlman's avatar Barry Perlman Committed by Yoni Fogel

[t:4067] #4067 Comment change only.

git-svn-id: file:///svn/toku/tokudb@35944 c7de825b-a66e-492c-adef-691d508d4ae1
parent 9c7a77ee
......@@ -134,6 +134,8 @@ static int find_brt_from_filenum (OMTVALUE v, void *filenumvp) {
// Input arg reset_root_xid_that_created TRUE means that this operation has changed the definition of this dictionary.
// (Example use is for schema change committed with txn that inserted cmdupdatebroadcast message.)
// The oplsn argument is ZERO_LSN for normal operation. When this function is called for recovery, it has the LSN of
// the operation (insert, delete, update, etc).
static int do_insertion (enum brt_msg_type type, FILENUM filenum, BYTESTRING key, BYTESTRING *data, TOKUTXN txn, LSN oplsn,
BOOL reset_root_xid_that_created) {
CACHEFILE cf;
......@@ -156,6 +158,7 @@ static int do_insertion (enum brt_msg_type type, FILENUM filenum, BYTESTRING key
assert(r==0);
BRT brt = brtv;
// This is only for recovery. oplsn is nonzero only for recovery
LSN treelsn = toku_brt_checkpoint_lsn(brt);
if (oplsn.lsn != 0 && oplsn.lsn <= treelsn.lsn) {
r = 0;
......
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