]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/mds/ScrubHeader.h
update sources to v12.2.3
[ceph.git] / ceph / src / mds / ScrubHeader.h
index 18c68ae8f9d475f2f5d30169e509a9b788d7c025..c22683d0280814fcbefa3a1fd053da9eb04584f0 100644 (file)
@@ -43,6 +43,9 @@ public:
   const std::string &get_tag() const { return tag; }
   Formatter &get_formatter() const { return *formatter; }
 
+  bool get_repaired() const { return repaired; }
+  void set_repaired() { repaired = true; }
+
 protected:
   const std::string tag;
   const bool force;
@@ -50,6 +53,8 @@ protected:
   const bool repair;
   Formatter * const formatter;
   CInode *origin;
+
+  bool repaired = false;  // May be set during scrub if repairs happened
 };
 
 typedef ceph::shared_ptr<ScrubHeader> ScrubHeaderRef;