]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: remove unused parameter of start_recovery_ops
authorZhiqiang Wang <zhiqiang.wang@intel.com>
Wed, 29 Jul 2015 07:48:04 +0000 (15:48 +0800)
committerZhiqiang Wang <zhiqiang.wang@intel.com>
Tue, 25 Aug 2015 08:10:10 +0000 (16:10 +0800)
The RecoveryCtx parameter is not needed.

Signed-off-by: Zhiqiang Wang <zhiqiang.wang@intel.com>
src/osd/OSD.cc
src/osd/PG.h
src/osd/ReplicatedPG.cc
src/osd/ReplicatedPG.h

index f8660c07c7635a63a1698fa8521dc3f8cd86b48a..b9f307c4cadc4466d700906673dcdc3783fab770 100644 (file)
@@ -7843,7 +7843,7 @@ void OSD::do_recovery(PG *pg, ThreadPool::TPHandle &handle)
     rctx.handle = &handle;
 
     int started;
-    bool more = pg->start_recovery_ops(max, &rctx, handle, &started);
+    bool more = pg->start_recovery_ops(max, handle, &started);
     dout(10) << "do_recovery started " << started << "/" << max << " on " << *pg << dendl;
 
     /*
index 6b8578aefee8778d6abd17b4cfbdc4acae1ff2a7..aa509e4f577cc02136a455f060b2fb0782fc05bf 100644 (file)
@@ -1032,8 +1032,7 @@ public:
    * @returns true if any useful work was accomplished; false otherwise
    */
   virtual bool start_recovery_ops(
-    int max, RecoveryCtx *prctx,
-    ThreadPool::TPHandle &handle,
+    int max, ThreadPool::TPHandle &handle,
     int *ops_begun) = 0;
 
   void purge_strays();
index 08a29c735af7af4c2a4ca50cda023444f567e8f5..5c39143ed2ea0b769c80eec32b75e91d245adba6 100644 (file)
@@ -9450,8 +9450,7 @@ void PG::MissingLoc::check_recovery_sources(const OSDMapRef osdmap)
   
 
 bool ReplicatedPG::start_recovery_ops(
-  int max, RecoveryCtx *prctx,
-  ThreadPool::TPHandle &handle,
+  int max, ThreadPool::TPHandle &handle,
   int *ops_started)
 {
   int& started = *ops_started;
index ab24da4199f1c6dd11fdb5f0ff9c0cc19f56e1be..338abb5aa25d4b19a217d5c140f38b71d8c482f6 100644 (file)
@@ -1253,8 +1253,7 @@ protected:
 
   void queue_for_recovery();
   bool start_recovery_ops(
-    int max, RecoveryCtx *prctx,
-    ThreadPool::TPHandle &handle, int *started);
+    int max, ThreadPool::TPHandle &handle, int *started);
 
   int recover_primary(int max, ThreadPool::TPHandle &handle);
   int recover_replicas(int max, ThreadPool::TPHandle &handle);