]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
objecter: fix read scatter/gather
authorSage Weil <sage@newdream.net>
Mon, 10 Nov 2008 23:46:15 +0000 (15:46 -0800)
committerSage Weil <sage@newdream.net>
Mon, 10 Nov 2008 23:46:15 +0000 (15:46 -0800)
src/osdc/Objecter.h

index c649e8b0f09672e554b6c87d80f2948c07bab264..efb43b2b5898cb3d2810977cf716826cb46ff807 100644 (file)
@@ -327,7 +327,7 @@ class Objecter {
       int i=0;
       for (vector<ObjectExtent>::iterator p = extents.begin(); p != extents.end(); p++) {
        read(p->oid, p->layout, p->offset, p->length,
-            &resultbl[i++], flags, onfinish);
+            &resultbl[i++], flags, g->new_sub());
       }
       g->set_finisher(new C_SGRead(this, extents, resultbl, bl, onfinish));
     }