]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/os/seastore/lba_manager/btree: don't assert deltas are empty 42957/head
authorSamuel Just <sjust@redhat.com>
Fri, 27 Aug 2021 21:19:54 +0000 (21:19 +0000)
committerSamuel Just <sjust@redhat.com>
Sat, 28 Aug 2021 04:57:04 +0000 (04:57 +0000)
We use the contents to update counters when transactions conflict,
deltas may validly be empty there.

Signed-off-by: Samuel Just <sjust@redhat.com>
src/crimson/os/seastore/lba_manager/btree/lba_btree_node.h

index 66eca56a223dfe73220a00d477dbb2e2995a842f..67bc8f155a20a9b99fb9fa4eb3c65772465f9461 100644 (file)
@@ -288,7 +288,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;