From: Samuel Just Date: Fri, 27 Aug 2021 21:19:54 +0000 (+0000) Subject: crimson/os/seastore/lba_manager/btree: don't assert deltas are empty X-Git-Tag: v17.1.0~990^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F42957%2Fhead;p=ceph.git crimson/os/seastore/lba_manager/btree: don't assert deltas are empty We use the contents to update counters when transactions conflict, deltas may validly be empty there. Signed-off-by: Samuel Just --- diff --git a/src/crimson/os/seastore/lba_manager/btree/lba_btree_node.h b/src/crimson/os/seastore/lba_manager/btree/lba_btree_node.h index 66eca56a223d..67bc8f155a20 100644 --- a/src/crimson/os/seastore/lba_manager/btree/lba_btree_node.h +++ b/src/crimson/os/seastore/lba_manager/btree/lba_btree_node.h @@ -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;