Fix cache was broken as it moved blobs and extents between cache shards
without changing atomic num_blobs, num_extent counters.
Now tracking counters correctly.
Signed-off-by: Adam Kupczyk <akupczyk@ibm.com>
<< dendl;
}
}
+ cache->rm_blob();
+ dest->cache->add_blob();
SharedBlob* sb = b->shared_blob.get();
if (sb->coll == dest) {
ldout(store->cct, 20) << __func__ << " already moved " << *sb
b.second->last_encoded_id = -1;
}
for (auto& e : o->extent_map.extent_map) {
+ cache->rm_extent();
+ dest->cache->add_extent();
Blob* tb = e.blob.get();
if (tb->last_encoded_id == -1) {
rehome_blob(tb);