]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
osd: Rename _scrub() to scrub_snapshot_metadata()
authorDavid Zafman <dzafman@redhat.com>
Fri, 9 Sep 2016 00:24:22 +0000 (17:24 -0700)
committerDavid Zafman <dzafman@redhat.com>
Mon, 10 Oct 2016 18:22:54 +0000 (11:22 -0700)
Signed-off-by: David Zafman <dzafman@redhat.com>
src/osd/PG.cc
src/osd/PG.h
src/osd/ReplicatedPG.cc
src/osd/ReplicatedPG.h

index 9608e2b80d4b9dd382b6adedb822ac264b22588f..c3b34b74960aa3e00144fa006a319b2ab7ba21a8 100644 (file)
@@ -4375,7 +4375,7 @@ void PG::scrub_compare_maps()
   }
 
   // ok, do the pg-type specific scrubbing
-  _scrub(for_meta_scrub, missing_digest);
+  scrub_snapshot_metadata(for_meta_scrub, missing_digest);
   if (!scrubber.store->empty()) {
     if (state_test(PG_STATE_REPAIR)) {
       dout(10) << __func__ << ": discarding scrub results" << dendl;
index 1651f3b970bc2ad17266250ce2c02dd229bacc84..94f2bf4f6b5861f8a8b7dae3ec47c8a0aec733fd 100644 (file)
@@ -1309,7 +1309,7 @@ public:
    */
   virtual bool _range_available_for_scrub(
     const hobject_t &begin, const hobject_t &end) = 0;
-  virtual void _scrub(
+  virtual void scrub_snapshot_metadata(
     ScrubMap &map,
     const std::map<hobject_t, pair<uint32_t, uint32_t>, hobject_t::BitwiseComparator> &missing_digest) { }
   virtual void _scrub_clear_state() { }
index c47c72d945d93f131096bcf2a6c57a4ff7e4f6dd..439ea5d1d6f43a1c677e4e4e0d7a50401f9c5307 100644 (file)
@@ -12773,11 +12773,11 @@ unsigned ReplicatedPG::process_clones_to(const boost::optional<hobject_t> &head,
  *              [Snapset clones 4]
  * EOL                  obj4 snap 4, (expected)
  */
-void ReplicatedPG::_scrub(
+void ReplicatedPG::scrub_snapshot_metadata(
   ScrubMap &scrubmap,
   const map<hobject_t, pair<uint32_t, uint32_t>, hobject_t::BitwiseComparator> &missing_digest)
 {
-  dout(10) << "_scrub" << dendl;
+  dout(10) << __func__ << dendl;
 
   coll_t c(info.pgid);
   bool repair = state_test(PG_STATE_REPAIR);
@@ -13096,7 +13096,7 @@ void ReplicatedPG::_scrub(
     ++scrubber.num_digest_updates_pending;
   }
 
-  dout(10) << "_scrub (" << mode << ") finish" << dendl;
+  dout(10) << __func__ << " (" << mode << ") finish" << dendl;
 }
 
 void ReplicatedPG::_scrub_clear_state()
index 96b07f52747f2a11a8180734b65d0cda96864d46..51f8c4af1e1db2b918785294948aa9205347c8a9 100644 (file)
@@ -1306,7 +1306,7 @@ protected:
   // -- scrub --
   virtual bool _range_available_for_scrub(
     const hobject_t &begin, const hobject_t &end) override;
-  virtual void _scrub(
+  virtual void scrub_snapshot_metadata(
     ScrubMap &map,
     const std::map<hobject_t, pair<uint32_t, uint32_t>,
     hobject_t::BitwiseComparator> &missing_digest) override;