]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: we don't use MOSDPGInfo to signal replica uptodate anymore
authorSage Weil <sage@newdream.net>
Thu, 18 Jun 2009 23:37:44 +0000 (16:37 -0700)
committerSage Weil <sage@newdream.net>
Thu, 18 Jun 2009 23:42:35 +0000 (16:42 -0700)
Clean out cruft from old replica-driven recovery.

src/osd/OSD.cc

index 93a74aaba4849530eb0dbfc9988547d36dfe0b0c..9599cb9f9dea0cc979b201fab75b8f6a5e5e7219 100644 (file)
@@ -2889,22 +2889,12 @@ void OSD::handle_pg_notify(MOSDPGNotify *m)
     }
 
     if (had) {
-      if (pg->is_active() && 
-          (*it).is_uptodate() && 
-         acting) {
-        pg->uptodate_set.insert(from);
-        dout(10) << *pg << " osd" << from << " now uptodate (" << pg->uptodate_set  
-                 << "): " << *it << dendl;
-      } else {
-        // hmm, maybe keep an eye out for cases where we see this, but peer should happen.
-        dout(10) << *pg << " already had notify info from osd" << from << ": " << *it << dendl;
-      }
-      if (pg->is_all_uptodate()) 
-       pg->finish_recovery();
+      // hmm, maybe keep an eye out for cases where we see this, but peer should happen.
+      dout(10) << *pg << " hmm, already had notify info from osd" << from << ": " << *it << dendl;
     } else {
       pg->peer(t, query_map, &info_map);
+      pg->update_stats();
     }
-    pg->update_stats();
     pg->unlock();
   }