Skip to content

Commit

Permalink
chore(core): fix path of todo file used during snapshot restore (ques…
Browse files Browse the repository at this point in the history
  • Loading branch information
ideoma authored Feb 27, 2024
1 parent 9322151 commit dd8762c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ void recoverSnapshot() {
copyOrError(srcPath.trimTo(srcPathLen), dstPath.trimTo(dstPathLen), ff, recoveredTxnFiles, TableUtils.TXN_FILE_NAME);
copyOrError(srcPath.trimTo(srcPathLen), dstPath.trimTo(dstPathLen), ff, recoveredCVFiles, TableUtils.COLUMN_VERSION_FILE_NAME);
// Reset _todo_ file otherwise TableWriter will start restoring metadata on open.
TableUtils.resetTodoLog(ff, path, rootLen, memFile);
TableUtils.resetTodoLog(ff, dstPath, dstPathLen, memFile);
rebuildTableFiles(dstPath.trimTo(dstPathLen), symbolFilesCount);

// Go inside SEQ_DIR
Expand Down

0 comments on commit dd8762c

Please sign in to comment.