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. (#718)

Co-authored-by: Karthick Ariyaratnam (A) <[email protected]>
Co-authored-by: Malavan Sotheeswaran <[email protected]>
  • Loading branch information
3 people authored Sep 29, 2023
1 parent 3816968 commit 57f4a2e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/storage/rocksdb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,13 @@ 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());
cf_options.level_compaction_dynamic_level_bytes = true;
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 57f4a2e

Please sign in to comment.