Skip to content

Commit

Permalink
type
Browse files Browse the repository at this point in the history
Signed-off-by: adi_holden <adi@dragonflydb.io>
  • Loading branch information
adiholden committed Mar 25, 2024
1 parent 25ba94b commit 9db7299
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/server/tiered_storage.cc
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ bool TieredStorage::PrepareForOffload(DbIndex db_index, PrimeIterator it) {
}

void TieredStorage::CancelOffload(DbIndex db_index, PrimeIterator it) {
VLOG(2) << "PrepareForOffload:" << it->first.ToString();
VLOG(2) << "CancelOffload:" << it->first.ToString();
size_t blob_len = it->second.Size();
if (blob_len > kMaxSmallBin) {
return;
Expand Down
4 changes: 2 additions & 2 deletions src/server/tiered_storage_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ bool TieredStorageTest::WaitUntilTieredEntriesGT(size_t value, int db_index) {
auto tiered_entries = GetMetrics().db_stats[db_index].tiered_entries;
return tiered_entries > value;
};
return WaitUntilCondition(std::move(cb), 2000ms);
return WaitUntilCondition(std::move(cb));
}

bool TieredStorageTest::WaitUntilTieredEntriesEQ(size_t value, int db_index) {
Expand Down Expand Up @@ -319,7 +319,7 @@ TEST_F(TieredStorageTest, GetValueValidation) {
EXPECT_EQ(m.db_stats[0].tiered_entries, 0);
}

TEST_F(TieredStorageTest, CrashBug) {
TEST_F(TieredStorageTest, BackgroundOffload) {
shard_set->TEST_EnableHeartBeat();
max_memory_limit = 300000;
absl::FlagSaver fs;
Expand Down

0 comments on commit 9db7299

Please sign in to comment.