Skip to content

Commit

Permalink
Improve order of binlog files deletion.
Browse files Browse the repository at this point in the history
  • Loading branch information
levlam committed Jul 26, 2021
1 parent 2aa683b commit a8e8208
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tddb/td/db/binlog/Binlog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -314,8 +314,8 @@ Status Binlog::close_and_destroy() {
}

Status Binlog::destroy(Slice path) {
unlink(PSLICE() << path << ".new").ignore(); // delete regenerated version first to avoid it becoming main version
unlink(PSLICE() << path).ignore();
unlink(PSLICE() << path << ".new").ignore();
return Status::OK();
}

Expand Down

0 comments on commit a8e8208

Please sign in to comment.