]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/onode-staged-tree: implement get_type() for test extents
authorYingxin Cheng <yingxin.cheng@intel.com>
Wed, 23 Dec 2020 03:56:14 +0000 (11:56 +0800)
committerYingxin Cheng <yingxin.cheng@intel.com>
Wed, 13 Jan 2021 02:34:06 +0000 (10:34 +0800)
Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
src/crimson/os/seastore/onode_manager/staged-fltree/node_extent_manager/dummy.h
src/crimson/os/seastore/onode_manager/staged-fltree/node_extent_manager/test_replay.h

index 604af37efcd5c483532620cd1015ff90deccc755..830ea4a7db80e9658357d96060fa117d6fe2020b 100644 (file)
@@ -51,7 +51,7 @@ class DummyNodeExtent final: public NodeExtent {
   CachedExtentRef duplicate_for_write() override {
     ceph_abort("impossible path"); }
   extent_types_t get_type() const override {
-    ceph_abort("impossible path"); }
+    return extent_types_t::TEST_BLOCK; }
   ceph::bufferlist get_delta() override {
     ceph_abort("impossible path"); }
   void apply_delta(const ceph::bufferlist&) override {
index 85ed5a448d047bae2d6de8efff8feb8ffaea6a76..240c8893281f3458ab5e6fe2d08954d628ac6a9e 100644 (file)
@@ -50,7 +50,7 @@ class TestReplayExtent final: public NodeExtent {
   CachedExtentRef duplicate_for_write() override {
     ceph_abort("impossible path"); }
   extent_types_t get_type() const override {
-    ceph_abort("impossible path"); }
+    return extent_types_t::TEST_BLOCK; }
   ceph::bufferlist get_delta() override {
     ceph_abort("impossible path"); }
   void apply_delta(const ceph::bufferlist&) override {