Skip to content

Commit

Permalink
Fix a bug where flash CF options are being reset to default after flu…
Browse files Browse the repository at this point in the history
…shall.
  • Loading branch information
Karthick Ariyaratnam (A) committed Sep 25, 2023
1 parent 5f5753a commit 9b4c75a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/storage/rocksdb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,12 @@ void RocksDBStorageProvider::retrieve(const char *key, size_t cchKey, callbackSi
size_t RocksDBStorageProvider::clear()
{
size_t celem = count();
auto options = m_spdb->GetOptions(m_spcolfamily.get());
auto status = m_spdb->DropColumnFamily(m_spcolfamily.get());
auto strName = m_spcolfamily->GetName();

rocksdb::ColumnFamilyHandle *handle = nullptr;
rocksdb::ColumnFamilyOptions cf_options(m_pfactory->RocksDbOptions());
rocksdb::ColumnFamilyOptions cf_options(options);
m_spdb->CreateColumnFamily(cf_options, strName, &handle);
m_spcolfamily = std::shared_ptr<rocksdb::ColumnFamilyHandle>(handle);

Expand Down

0 comments on commit 9b4c75a

Please sign in to comment.