]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/os/seastore/rbm: move test interfaces to the end of the class
authormyoungwon oh <ohmyoungwon@gmail.com>
Thu, 20 Oct 2022 05:21:49 +0000 (14:21 +0900)
committermyoungwon oh <ohmyoungwon@gmail.com>
Fri, 21 Oct 2022 02:45:09 +0000 (11:45 +0900)
Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
src/crimson/os/seastore/random_block_manager/rbm_device.h

index 8e32238da49896935c9d67db63cc92238ecc8046..77bff9bf340ce7eb1d96fc02f36cd29d95e11ea7 100644 (file)
@@ -96,10 +96,6 @@ public:
   device_id_t get_device_id() const {
     return super.config.spec.id;
   }
-  // for test
-  void set_device_id(device_id_t id) {
-    super.config.spec.id = id;
-  }
 
   magic_t get_magic() const final {
     return super.config.spec.magic;
@@ -168,13 +164,17 @@ public:
     return super.journal_size;
   }
 
-  void set_journal_size(uint64_t size) {
-    super.journal_size = size + get_block_size();
-  }
-
   static rbm_abs_addr get_journal_start() {
     return RBM_SUPERBLOCK_SIZE;
   }
+
+  // interfaces for test
+  void set_device_id(device_id_t id) {
+    super.config.spec.id = id;
+  }
+  void set_journal_size(uint64_t size) {
+    super.journal_size = size + get_block_size();
+  }
 };
 
 class EphemeralRBMDevice : public RBMDevice {