]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
common/scrub_types.h: add inconsistent_obj_wrapper::merge
authorSamuel Just <sjust@redhat.com>
Sat, 1 Jul 2023 21:06:17 +0000 (21:06 +0000)
committerSamuel Just <sjust@redhat.com>
Mon, 11 Dec 2023 04:10:18 +0000 (04:10 +0000)
Signed-off-by: Samuel Just <sjust@redhat.com>
src/common/scrub_types.h

index 150ba87af8afe24d29c3fd33e46c0957f9296985..972d0993193f1c8c708923e0cfbde0ce0daeb103 100644 (file)
@@ -113,6 +113,10 @@ namespace librados {
 struct inconsistent_obj_wrapper : librados::inconsistent_obj_t {
   explicit inconsistent_obj_wrapper(const hobject_t& hoid);
 
+  void merge(obj_err_t other) {
+    errors |= other.errors;
+  }
+
   void set_object_info_inconsistency() {
     errors |= obj_err_t::OBJECT_INFO_INCONSISTENCY;
   }