]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: small cleanup
authorSage Weil <sage.weil@dreamhost.com>
Fri, 20 May 2011 22:04:57 +0000 (15:04 -0700)
committerSage Weil <sage.weil@dreamhost.com>
Fri, 20 May 2011 22:15:12 +0000 (15:15 -0700)
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
src/osd/OSD.cc

index f564d2dda848a228e6b59490d0c370b5573d0d09..087c8e2bf655bd90e218c47b51e23eee27973991 100644 (file)
@@ -4187,7 +4187,6 @@ void OSD::handle_pg_info(MOSDPGInfo *m)
     C_Contexts *fin = 0;
     PG *pg = get_or_create_pg(*p, m->get_epoch(), 
                              from, created, false, &t, &fin);
-    PG::RecoveryCtx rctx(0, &info_map, 0, &fin->contexts, t);
     if (!pg)
       continue;
 
@@ -4197,6 +4196,8 @@ void OSD::handle_pg_info(MOSDPGInfo *m)
       continue;
     }
 
+    PG::RecoveryCtx rctx(0, &info_map, 0, &fin->contexts, t);
+
     pg->handle_info(from, *p, &rctx);
 
     int tr = store->queue_transaction(&pg->osr, t, new ObjectStore::C_DeleteTransaction(t), fin);