Skip to content

Commit

Permalink
Fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
git-hulk committed Oct 11, 2023
1 parent 9983efd commit b946cee
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/cppunit/compact_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,14 @@ TEST(Compact, Filter) {
usleep(10000);
hash->Set(live_hash_key, "f1", "v1", &ret);
hash->Set(live_hash_key, "f2", "v2", &ret);

auto status = storage->Compact(nullptr, nullptr);
assert(status.ok());
// Compact twice to workaround issue fixed by: https://github.com/facebook/rocksdb/pull/11468
// before rocksdb/speedb 8.1.1. This line can be removed after speedb upgraded above 8.1.1.
status = storage->Compact(nullptr, nullptr);
assert(status.ok());
auto status = storage->Compact(nullptr, nullptr);
assert(status.ok());

rocksdb::DB* db = storage->GetDB();
rocksdb::ReadOptions read_options;
read_options.snapshot = db->GetSnapshot();
Expand Down

0 comments on commit b946cee

Please sign in to comment.