]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: Change some be_compare_scrub_objects() args to const 1162/head
authorDavid Zafman <david.zafman@inktank.com>
Thu, 30 Jan 2014 01:14:09 +0000 (17:14 -0800)
committerDavid Zafman <david.zafman@inktank.com>
Fri, 31 Jan 2014 19:00:22 +0000 (11:00 -0800)
Signed-off-by: David Zafman <david.zafman@inktank.com>
src/osd/PGBackend.h
src/osd/ReplicatedBackend.cc
src/osd/ReplicatedBackend.h

index a95c716559f328d3f8c412ba890642f71ceb8482..b887b141086bad4a4a9b8fda941c0005b3ba0650 100644 (file)
    virtual void be_scan_list(ScrubMap &map, const vector<hobject_t> &ls, bool deep,
      ThreadPool::TPHandle &handle) { assert(0); }
    virtual enum scrub_error_type be_compare_scrub_objects(
-                               ScrubMap::object &auth,
-                               ScrubMap::object &candidate,
+                               const ScrubMap::object &auth,
+                               const ScrubMap::object &candidate,
                                ostream &errorstream) { assert(0); }
    virtual map<int, ScrubMap *>::const_iterator be_select_auth_object(
      const hobject_t &obj,
index 16eef86d88150ea9e87279ea3c9e5f3fa6003801..6d7d2e5139189d9863fe18992022093e0f073cb1 100644 (file)
@@ -869,8 +869,8 @@ void ReplicatedBackend::be_scan_list(
 }
 
 enum scrub_error_type ReplicatedBackend::be_compare_scrub_objects(
-                               ScrubMap::object &auth,
-                               ScrubMap::object &candidate,
+                               const ScrubMap::object &auth,
+                               const ScrubMap::object &candidate,
                                ostream &errorstream)
 {
   enum scrub_error_type error = CLEAN;
index 1c66c4aa586e8d48233ed04fe38afff69960fa10..0f9cf5654ada79b6dbe32978844681a290d72311 100644 (file)
@@ -493,8 +493,8 @@ private:
   void be_scan_list(ScrubMap &map, const vector<hobject_t> &ls, bool deep,
     ThreadPool::TPHandle &handle);
   enum scrub_error_type be_compare_scrub_objects(
-                               ScrubMap::object &auth,
-                               ScrubMap::object &candidate,
+                               const ScrubMap::object &auth,
+                               const ScrubMap::object &candidate,
                                ostream &errorstream);
   map<int, ScrubMap *>::const_iterator be_select_auth_object(
     const hobject_t &obj,