mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 06:44:16 +01:00
fix up some compile issues [t:2003]
git-svn-id: file:///svn/toku/tokudb@14490 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
2fefaf6428
commit
d4c7ca77d9
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue