Commit a293c6da authored by Yoni Fogel's avatar Yoni Fogel

Addresses #2090 refs[t:2090] Bugfix in reserving filenums during recovery.

Use filenum provided.

git-svn-id: file:///svn/toku/tokudb.2037b@15646 c7de825b-a66e-492c-adef-691d508d4ae1
parent 030df27e
...@@ -453,7 +453,10 @@ toku_cachetable_reserve_filenum (CACHETABLE ct, FILENUM *reserved_filenum, BOOL ...@@ -453,7 +453,10 @@ toku_cachetable_reserve_filenum (CACHETABLE ct, FILENUM *reserved_filenum, BOOL
{ {
//Reserve a filenum. //Reserve a filenum.
FILENUM reserved; FILENUM reserved;
reserved.fileid = next_filenum_to_use.fileid++; if (with_filenum)
reserved.fileid = filenum.fileid;
else
reserved.fileid = next_filenum_to_use.fileid++;
reserve_filenum(ct, reserved); reserve_filenum(ct, reserved);
*reserved_filenum = reserved; *reserved_filenum = reserved;
r = 0; 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