]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
PG: proc_replica_info, oinfo not info
authorSamuel Just <rexludorum@gmail.com>
Wed, 4 May 2011 20:38:57 +0000 (13:38 -0700)
committerSamuel Just <samuel.just@dreamhost.com>
Wed, 4 May 2011 20:52:39 +0000 (13:52 -0700)
The method param info shadowed PG::info.

src/osd/PG.cc

index 7ee0a103f615bf45ee5bb885701c05098cdd8cd3..1bfd4b71bea0a8874c565d5e37a8dccb38046152 100644 (file)
@@ -291,19 +291,19 @@ void PG::proc_replica_log(ObjectStore::Transaction& t, Info &oinfo, Log &olog, M
   peer_missing[from].swap(omissing);
 }
 
-void PG::proc_replica_info(int from, Info &info)
+void PG::proc_replica_info(int from, Info &oinfo)
 {
   assert(is_primary());
-  peer_info[from] = info;
+  peer_info[from] = oinfo;
   might_have_unfound.insert(from);
   
   osd->unreg_last_pg_scrub(info.pgid, info.history.last_scrub_stamp);
-  info.history.merge(info.history);
+  info.history.merge(oinfo.history);
   osd->reg_last_pg_scrub(info.pgid, info.history.last_scrub_stamp);
   
   // stray?
   if (!is_acting(from)) {
-    dout(10) << " osd" << from << " has stray content: " << info << dendl;
+    dout(10) << " osd" << from << " has stray content: " << oinfo << dendl;
     stray_set.insert(from);
     if (is_clean()) {
       purge_strays();