]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/os/seastore/.../lba_btree_node.h: add operator== for lba_map_val_t
authorSamuel Just <sjust@redhat.com>
Fri, 22 Oct 2021 06:14:20 +0000 (23:14 -0700)
committerSamuel Just <sjust@redhat.com>
Mon, 25 Oct 2021 08:05:18 +0000 (01:05 -0700)
Signed-off-by: Samuel Just <sjust@redhat.com>
src/crimson/os/seastore/lba_manager/btree/lba_btree_node.h

index 146942eb6f968efcbffb5454a703a7f8b3e536ab..72aebaa385950d924837ee98d3f4875777faf511 100644 (file)
@@ -48,6 +48,12 @@ struct lba_map_val_t {
     uint32_t checksum)
     : len(len), paddr(paddr), refcount(refcount), checksum(checksum) {}
 };
+WRITE_EQ_OPERATORS_4(
+  lba_map_val_t,
+  len,
+  paddr,
+  refcount,
+  checksum);
 
 class BtreeLBAPin;
 using BtreeLBAPinRef = std::unique_ptr<BtreeLBAPin>;