]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/os/seastore/rbm: use RBMDevice::size instead of TestMemory::size in TestMemory 47981/head
authormyoungwon oh <ohmyoungwon@gmail.com>
Fri, 2 Sep 2022 05:06:28 +0000 (14:06 +0900)
committermyoungwon oh <ohmyoungwon@gmail.com>
Wed, 7 Sep 2022 05:58:48 +0000 (14:58 +0900)
Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
src/crimson/os/seastore/random_block_manager/rbm_device.h

index 65ac3d62b6633e23f74d5ce6111db40b35a1d341..050e14542da4299d279e3f7adda7cd0b6a88212a 100644 (file)
@@ -154,7 +154,9 @@ public:
 class TestMemory : public RBMDevice {
 public:
 
-  TestMemory(size_t size) : buf(nullptr), size(size) {}
+  TestMemory(size_t size) : buf(nullptr) {
+    RBMDevice::size = size;
+  }
   ~TestMemory() {
     if (buf) {
       ::munmap(buf, size);
@@ -200,6 +202,5 @@ public:
     uint16_t stream = 0) final;
 
   char *buf;
-  size_t size;
 };
 }