]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ReplicatedPG::recover_replicas: do not assume that missing objects are unfound 1381/head
authorSamuel Just <sam.just@inktank.com>
Wed, 5 Mar 2014 21:16:18 +0000 (13:16 -0800)
committerSamuel Just <sam.just@inktank.com>
Wed, 5 Mar 2014 23:14:15 +0000 (15:14 -0800)
Fixes: #7618
Signed-off-by: Samuel Just <sam.just@inktank.com>
src/osd/ReplicatedPG.cc

index c95a7e59f70ba33613a2f98a49eb0680ffd05a3a..99ba926e5ad98040d666807dcfc671fe2990a397 100644 (file)
@@ -9557,11 +9557,13 @@ int ReplicatedPG::recover_replicas(int max, ThreadPool::TPHandle &handle)
        continue;
       }
 
+      if (missing_loc.is_unfound(soid)) {
+       dout(10) << __func__ << ": " << soid << " still unfound" << dendl;
+       continue;
+      }
+
       if (pg_log.get_missing().is_missing(soid)) {
-       if (missing_loc.is_unfound(soid))
-         dout(10) << __func__ << ": " << soid << " still unfound" << dendl;
-       else
-         dout(10) << __func__ << ": " << soid << " still missing on primary" << dendl;
+       dout(10) << __func__ << ": " << soid << " still missing on primary" << dendl;
        continue;
       }