Skip to content

Commit ed91bc0

Browse files
Fix: cleanup bug.
1 parent 8808899 commit ed91bc0

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/storage/buffer/buffer_obj.cppm

+3-1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ export String BufferStatusToString(BufferStatus status) {
4848
return "Freed";
4949
case BufferStatus::kNew:
5050
return "New";
51+
case BufferStatus::kClean:
52+
return "Clean";
5153
default:
5254
return "Invalid";
5355
}
@@ -77,7 +79,7 @@ public:
7779

7880
void CleanupFile() const;
7981

80-
void CleanupTempFile() const ;
82+
void CleanupTempFile() const;
8183

8284
SizeT GetBufferSize() const { return file_worker_->GetMemoryCost(); }
8385

src/storage/txn/txn_manager.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@ TxnTimeStamp TxnManager::GetCleanupScanTS() {
237237
auto first_txn = beginned_txns_.front().lock();
238238
if (first_txn.get() != nullptr) {
239239
first_uncommitted_begin_ts = first_txn->BeginTS();
240+
break;
240241
}
241242
beginned_txns_.pop_front();
242243
}

0 commit comments

Comments
 (0)