Skip to content

Commit

Permalink
fix: naming
Browse files Browse the repository at this point in the history
  • Loading branch information
wanghenshui committed Dec 4, 2024
1 parent 0eb10e1 commit bb138f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/storage/storage.cc
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,10 @@ Storage::Storage(Config *config)
Storage::~Storage() {
DestroyBackup();
CloseDB();
SkipBlockCacheDeallocationOnClose();
TrySkipBlockCacheDeallocationOnClose();
}

void Storage::SkipBlockCacheDeallocationOnClose() {
void Storage::TrySkipBlockCacheDeallocationOnClose() {
if (config_->skip_block_cache_deallocation_on_close) {
shared_block_cache_->DisownData();
}
Expand Down
2 changes: 1 addition & 1 deletion src/storage/storage.h
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ class Storage {
void SetWriteOptions(const Config::RocksDB::WriteOptions &config);
Status Open(DBOpenMode mode = kDBOpenModeDefault);
void CloseDB();
void SkipBlockCacheDeallocationOnClose();
void TrySkipBlockCacheDeallocationOnClose();
bool IsEmptyDB();
void EmptyDB();
rocksdb::BlockBasedTableOptions InitTableOptions();
Expand Down

0 comments on commit bb138f2

Please sign in to comment.