]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ReplicatedPG::cancel_pull: ECBackend might cancel_pull on a non-missing object
authorSamuel Just <sam.just@inktank.com>
Fri, 21 Feb 2014 02:32:08 +0000 (18:32 -0800)
committerSamuel Just <sam.just@inktank.com>
Sat, 22 Feb 2014 20:35:40 +0000 (12:35 -0800)
Signed-off-by: Samuel Just <sam.just@inktank.com>
src/osd/ReplicatedPG.cc

index f04a9176935b79c1931947c626a7c65a1fc0d976..32171c3ba4bbf6ca9e60460f42d8957b7da50883 100644 (file)
@@ -9018,7 +9018,8 @@ void ReplicatedPG::cancel_pull(const hobject_t &soid)
   assert(recovering.count(soid));
   recovering.erase(soid);
   finish_recovery_op(soid);
-  pg_log.set_last_requested(0); // get recover_primary to start over
+  if (is_missing_object(soid))
+    pg_log.set_last_requested(0); // get recover_primary to start over
 }
 
 void ReplicatedPG::check_recovery_sources(const OSDMapRef osdmap)