Improve order of binlog files deletion.

This commit is contained in:
levlam 2021-07-26 21:09:39 +03:00
parent 2aa683bf4c
commit a8e8208fa6

View File

@ -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();
}