fix(tiering): Async delete for small bins (#3068)

* fix(tiering): Async delete for small bins

---------

Signed-off-by: Vladislav Oleshko <vlad@dragonflydb.io>
This commit is contained in:
Vladislav 2024-05-28 12:08:59 +03:00 committed by GitHub
parent b2213b05d1
commit 68d1a8680c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 74 additions and 47 deletions

View file

@ -1439,7 +1439,7 @@ void DbSlice::PerformDeletion(Iterator del_it, ExpIterator exp_it, DbTable* tabl
const PrimeValue& pv = del_it->second;
if (pv.IsExternal() && shard_owner()->tiered_storage()) {
shard_owner()->tiered_storage()->Delete(&del_it->second);
shard_owner()->tiered_storage()->Delete(table->index, &del_it->second);
}
size_t value_heap_size = pv.MallocUsed();