Skip to content

Commit

Permalink
Fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
small-turtle-1 committed Jan 6, 2025
1 parent 8ea1e2a commit 24e6354
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/storage/buffer/buffer_obj.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ BufferHandle BufferObj::Load(bool no_mmap) {
}
if (type_ == BufferType::kMmap) {
switch (status_) {
case BufferStatus::kUnloaded:
case BufferStatus::kLoaded: {
break;
}
Expand Down Expand Up @@ -353,7 +354,7 @@ void BufferObj::UnloadInner() {
type_ = BufferType::kMmap;
} else if (type_ == BufferType::kMmap) {
file_worker_->MmapNotNeed();
status_ = BufferStatus::kFreed;
status_ = BufferStatus::kUnloaded;
} else {
buffer_mgr_->PushGCQueue(this);
status_ = BufferStatus::kUnloaded;
Expand Down

0 comments on commit 24e6354

Please sign in to comment.