]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: fix typo/bug when picking osd to pull missing object from
authorSage Weil <sage@newdream.net>
Mon, 10 Nov 2008 21:42:14 +0000 (13:42 -0800)
committerSage Weil <sage@newdream.net>
Mon, 10 Nov 2008 21:42:14 +0000 (13:42 -0800)
src/osd/ReplicatedPG.cc

index d77eb1aff79cf938cd9311b390dc83403d5f1002..78d041435aae004a7490db26fbdd34cf852cae7f 100644 (file)
@@ -1825,7 +1825,7 @@ bool ReplicatedPG::pull(pobject_t poid)
   for (set<int>::iterator p = missing_loc[poid.oid].begin();
        p != missing_loc[poid.oid].end();
        p++) {
-    if (osd->osdmap->is_up(fromosd)) {
+    if (osd->osdmap->is_up(*p)) {
       fromosd = *p;
       break;
     }