summaryrefslogtreecommitdiffstats
path: root/src/os/bluestore/BlueStore.h
diff options
context:
space:
mode:
authorPere Diaz Bou <pdiabou@redhat.com>2023-09-25 12:11:12 +0200
committerPere Diaz Bou <pere-altea@hotmail.com>2024-02-08 12:16:35 +0100
commit8961e2cca30afefaada7ba57b1e7458e3a29c754 (patch)
treee3f8ab1edf008b295ad922a64c87c05eee0c8e4f /src/os/bluestore/BlueStore.h
parentos/bluestore: rehome Blob AND SharedBlob (diff)
downloadceph-8961e2cca30afefaada7ba57b1e7458e3a29c754.tar.xz
ceph-8961e2cca30afefaada7ba57b1e7458e3a29c754.zip
os/bluestore: add missing add_blobs
Signed-off-by: Pere Diaz Bou <pdiabou@redhat.com>
Diffstat (limited to 'src/os/bluestore/BlueStore.h')
-rw-r--r--src/os/bluestore/BlueStore.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/os/bluestore/BlueStore.h b/src/os/bluestore/BlueStore.h
index 7407963cd39..cc2ef5e430e 100644
--- a/src/os/bluestore/BlueStore.h
+++ b/src/os/bluestore/BlueStore.h
@@ -615,6 +615,7 @@ public:
ceph_assert(!shared_blob);
sbid_unloaded = sb->get_sbid();
shared_blob = sb;
+ collection = sb->coll;
ceph_assert(get_cache());
get_cache()->add_blob();
}
@@ -1628,6 +1629,7 @@ private:
BlobRef new_blob() {
BlobRef b = new Blob();
b->collection = this;
+ b->get_cache()->add_blob();
return b;
}