Skip to content

Commit

Permalink
Merge pull request #1470 from kuzudb/fix-1466
Browse files Browse the repository at this point in the history
Fix issue 1466
  • Loading branch information
ray6080 committed Apr 17, 2023
2 parents 6fc38d0 + e05bced commit d8856cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/include/storage/buffer_manager/buffer_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ class BufferManager {
inline common::frame_group_idx_t addNewFrameGroup(common::PageSizeClass pageSizeClass) {
return vmRegions[pageSizeClass]->addNewFrameGroup();
}
inline void clearEvictionQueue() { evictionQueue = std::make_unique<EvictionQueue>(0); }

private:
bool claimAFrame(
Expand Down
1 change: 1 addition & 0 deletions src/main/database.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ Database::Database(const char* databasePath, SystemConfig systemConfig)

Database::~Database() {
dropLoggers();
bufferManager->clearEvictionQueue();
}

void Database::initDBDirAndCoreFilesIfNecessary() const {
Expand Down

0 comments on commit d8856cb

Please sign in to comment.