]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-objectstore-tool: drop head_exists corruption
authorSage Weil <sage@redhat.com>
Thu, 7 Sep 2017 19:09:04 +0000 (15:09 -0400)
committerSage Weil <sage@redhat.com>
Thu, 21 Sep 2017 18:29:35 +0000 (14:29 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
src/tools/ceph_objectstore_tool.cc

index a1b78a9db3e8635bf8a6abcb0c3e06ba3e4f09a3..df01a592fce66b368bad63fee7a6448a65be8c96 100644 (file)
@@ -2086,14 +2086,6 @@ int clear_snapset(ObjectStore *store, coll_t coll, ghobject_t &ghobj,
   if (ret < 0)
     return ret;
 
-  // Use "head" to set head_exists incorrectly
-  if (arg == "corrupt" || arg == "head")
-    ss.head_exists = !ghobj.hobj.is_head();
-  else if (ss.head_exists != ghobj.hobj.is_head()) {
-    cerr << "Correcting head_exists, set to "
-         << (ghobj.hobj.is_head() ? "true" : "false") << std::endl;
-    ss.head_exists = ghobj.hobj.is_head();
-  }
   // Use "corrupt" to clear entire SnapSet
   // Use "seq" to just corrupt SnapSet.seq
   if (arg == "corrupt" || arg == "seq")