]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
crimson/os/seastore/lba_manager: remove assert non-empty delta
authorYingxin Cheng <yingxin.cheng@intel.com>
Tue, 3 Aug 2021 06:36:36 +0000 (14:36 +0800)
committerYingxin Cheng <yingxin.cheng@intel.com>
Thu, 5 Aug 2021 07:45:07 +0000 (15:45 +0800)
Delta can be empty when measure the effort of invalidated transactions.

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
src/crimson/os/seastore/lba_manager/btree/lba_btree_node_impl.h

index 61942e339a64d956fe21a529a231b2a919da7d60..fc9fd0634b8959abfc4dc29e275ddc4fcf2a15ca 100644 (file)
@@ -230,7 +230,6 @@ struct LBAInternalNode
   std::ostream &print_detail(std::ostream &out) const final;
 
   ceph::bufferlist get_delta() final {
-    assert(!delta_buffer.empty());
     ceph::buffer::ptr bptr(delta_buffer.get_bytes());
     delta_buffer.copy_out(bptr.c_str(), bptr.length());
     ceph::bufferlist bl;
@@ -500,7 +499,6 @@ struct LBALeafNode
   }
 
   ceph::bufferlist get_delta() final {
-    assert(!delta_buffer.empty());
     ceph::buffer::ptr bptr(delta_buffer.get_bytes());
     delta_buffer.copy_out(bptr.c_str(), bptr.length());
     ceph::bufferlist bl;