]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: Reorganize class members in ScrubHeader header 31717/head
authorVarsha Rao <varao@redhat.com>
Mon, 18 Nov 2019 15:23:51 +0000 (20:53 +0530)
committerVarsha Rao <varao@redhat.com>
Mon, 18 Nov 2019 15:23:51 +0000 (20:53 +0530)
Fixes: https://tracker.ceph.com/issues/42865
Signed-off-by: Varsha Rao <varao@redhat.com>
src/mds/ScrubHeader.h

index f49598d85e06c913dd054435bfa49f95908ac66d..e69a3727c69ff5829ce7fa5aa13854ac3b8b1e27 100644 (file)
@@ -29,7 +29,7 @@ public:
   ScrubHeader(std::string_view tag_, bool is_tag_internal_, bool force_,
               bool recursive_, bool repair_, Formatter *f_)
     : tag(tag_), is_tag_internal(is_tag_internal_), force(force_),
-      recursive(recursive_), repair(repair_), formatter(f_), origin(nullptr)
+      recursive(recursive_), repair(repair_), formatter(f_)
   {
     ceph_assert(formatter != nullptr);
   }
@@ -56,7 +56,7 @@ protected:
   const bool recursive;
   const bool repair;
   Formatter * const formatter;
-  CInode *origin;
+  CInode *origin = nullptr;
 
   bool repaired = false;  // May be set during scrub if repairs happened
 };