Commit db33fb64 authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

fix up some compile issues [t:2003]

git-svn-id: file:///svn/toku/tokudb@14490 c7de825b-a66e-492c-adef-691d508d4ae1
parent 4030ed29
......@@ -319,8 +319,8 @@ static void toku_recover_enq_insert (LSN lsn, FILENUM filenum, TXNID xid, BYTEST
}
static int toku_recover_tablelock_on_empty_table(LSN UU(lsn), FILENUM filenum, TXNID xid, RECOVER_ENV renv) {
struct cf_pair *pair = NULL;
int r = find_cachefile(&renv->fmap, filenum, &pair);
struct cf_tuple *tuple = NULL;
int r = find_cachefile(&renv->fmap, filenum, &tuple);
if (r!=0) {
// if we didn't find a cachefile, then we don't have to do anything.
return 0;
......@@ -328,8 +328,8 @@ static int toku_recover_tablelock_on_empty_table(LSN UU(lsn), FILENUM filenum, T
TOKUTXN txn;
r = toku_txnid2txn(renv->logger, xid, &txn);
assert(r == 0);
r = toku_brt_note_table_lock(pair->brt, txn);
assert(r == 0 && txn);
r = toku_brt_note_table_lock(tuple->brt, txn);
assert(r == 0);
return 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