Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
ray6080 committed Mar 16, 2023
1 parent e465558 commit a8f4526
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 435 deletions.
1 change: 0 additions & 1 deletion src/include/common/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#include <vector>

#include "common/constants.h"
#include "common/types/types.h"
#include "exception.h"
#include "spdlog/fmt/fmt.h"

Expand Down
141 changes: 0 additions & 141 deletions src/include/storage/buffer_manager/buffer_pool.h

This file was deleted.

1 change: 1 addition & 0 deletions src/storage/buffer_manager/bm_managed_file_handle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ void BMFileHandle::clearWALPageVersionIfNecessary(common::page_idx_t pageIdx) {
}
createPageVersionGroupIfNecessary(pageIdx);
setWALPageVersionNoLock(pageIdx, UINT32_MAX);
// TODO(Guodong): Why do we release lock here? Need to understand how the lock was acquired.
releasePageLock(pageIdx);
}

Expand Down
1 change: 0 additions & 1 deletion src/storage/buffer_manager/buffer_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,6 @@ void BufferManager::removePageFromFrame(
fileHandle.acquirePageLock(pageIdx, LockMode::SPIN);
auto pageState = fileHandle.getPageState(pageIdx);
if (pageState && pageState->isCached()) {
assert(pageState->getPinCount() == 0);
if (shouldFlush) {
flushIfDirtyWithoutLock(fileHandle, pageIdx);
}
Expand Down
Loading

0 comments on commit a8f4526

Please sign in to comment.