Skip to content

Commit

Permalink
Use destroy function to cleanup cf
Browse files Browse the repository at this point in the history
  • Loading branch information
ls4154 committed Sep 16, 2024
1 parent e7df47c commit b8e5cc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rocksdb/rocksdb_db.cc
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ void RocksdbDB::Cleanup() {
}
for (size_t i = 0; i < cf_handles_.size(); i++) {
if (cf_handles_[i] != nullptr) {
delete cf_handles_[i];
db_->DestroyColumnFamilyHandle(cf_handles_[i]);
cf_handles_[i] = nullptr;
}
}
Expand Down

0 comments on commit b8e5cc1

Please sign in to comment.