]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/OSD.cc: reduce scope of "PG *pg" in OSD::handle_pg_query()
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Fri, 1 Mar 2013 15:57:13 +0000 (16:57 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Fri, 1 Mar 2013 15:57:13 +0000 (16:57 +0100)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/osd/OSD.cc

index a2d4915a9279d6c45effe65a23a487ae319bc29e..d667b53eb69ef6b0974efef2ec361993717541c2 100644 (file)
@@ -5486,9 +5486,8 @@ void OSD::handle_pg_query(OpRequestRef op)
       continue;
     }
 
-    PG *pg = 0;
-
     if (pg_map.count(pgid)) {
+      PG *pg = 0;
       pg = _lookup_lock_pg(pgid);
       pg->queue_query(it->second.epoch_sent, it->second.epoch_sent,
                      from, it->second);