Skip to content

Commit b8e5cc1

Browse files
committed
Use destroy function to cleanup cf
1 parent e7df47c commit b8e5cc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rocksdb/rocksdb_db.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ void RocksdbDB::Cleanup() {
225225
}
226226
for (size_t i = 0; i < cf_handles_.size(); i++) {
227227
if (cf_handles_[i] != nullptr) {
228-
delete cf_handles_[i];
228+
db_->DestroyColumnFamilyHandle(cf_handles_[i]);
229229
cf_handles_[i] = nullptr;
230230
}
231231
}

0 commit comments

Comments
 (0)