]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/os/seastore/object_data_handler: add ObjectDataHandler(extent_len_t) 53955/head
authorXuehan Xu <xuxuehan@qianxin.com>
Fri, 14 Jul 2023 03:59:06 +0000 (11:59 +0800)
committerMatan Breizman <mbreizma@redhat.com>
Wed, 11 Oct 2023 11:45:23 +0000 (11:45 +0000)
Signed-off-by: Xuehan Xu <xuxuehan@qianxin.com>
(cherry picked from commit c1fdb2a8a41c6f0f204c980c4f3af7cfac28723d)

src/crimson/os/seastore/object_data_handler.h

index 6fd73dc762a3aa62228011eb7424f4e99f9df3fb..ca648f12c2e43048d7a80c34ed94be1db5bb288b 100644 (file)
@@ -19,10 +19,12 @@ namespace crimson::os::seastore {
 struct ObjectDataBlock : crimson::os::seastore::LogicalCachedExtent {
   using Ref = TCachedExtentRef<ObjectDataBlock>;
 
-  ObjectDataBlock(ceph::bufferptr &&ptr)
+  explicit ObjectDataBlock(ceph::bufferptr &&ptr)
     : LogicalCachedExtent(std::move(ptr)) {}
-  ObjectDataBlock(const ObjectDataBlock &other)
+  explicit ObjectDataBlock(const ObjectDataBlock &other)
     : LogicalCachedExtent(other) {}
+  explicit ObjectDataBlock(extent_len_t length)
+    : LogicalCachedExtent(length) {}
 
   CachedExtentRef duplicate_for_write(Transaction&) final {
     return CachedExtentRef(new ObjectDataBlock(*this));