]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
OSD: activate_map should not do_peer on a replaying pg
authorSamuel Just <samuel.just@dreamhost.com>
Tue, 22 Feb 2011 23:58:09 +0000 (15:58 -0800)
committerSamuel Just <samuel.just@dreamhost.com>
Mon, 28 Feb 2011 23:43:42 +0000 (15:43 -0800)
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
src/osd/OSD.cc

index a347be26197b6273a4bca7df9ab8907d2e928bb1..731c70e90c4612817e0efd6031ec3d27ebbc349f 100644 (file)
@@ -3323,7 +3323,7 @@ void OSD::activate_map(ObjectStore::Transaction& t, list<Context*>& tfin)
     else if (pg->is_primary() &&
             !pg->is_active()) {
       // i am (inactive) primary
-      if (!pg->is_peering() || 
+      if ((!pg->is_peering() && !pg->is_replay()) || 
          (pg->need_up_thru && up_thru >= pg->info.history.same_acting_since))
        pg->do_peer(t, tfin, query_map, &info_map);
     }