]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osdc: fix truncation of multiple extents of the same object
authorYehuda Sadeh <yehuda@hq.newdream.net>
Thu, 18 Mar 2010 21:35:24 +0000 (14:35 -0700)
committerYehuda Sadeh <yehuda@hq.newdream.net>
Thu, 18 Mar 2010 21:51:33 +0000 (14:51 -0700)
src/osdc/Filer.h

index f7e4ba2b0a55665abf197cffae90adee3d70d56d..0208a890562113f20865ff6537b7645d59a16c29 100644 (file)
@@ -202,7 +202,7 @@ class Filer {
        ops[0].op.op = CEPH_OSD_OP_TRIMTRUNC;
        ops[0].op.extent.truncate_size = p->offset;
        ops[0].op.extent.truncate_seq = truncate_seq;
-       objecter->_modify(extents[0].oid, p->layout, ops, mtime, snapc, flags,
+       objecter->_modify(p->oid, p->layout, ops, mtime, snapc, flags,
                          gack ? gack->new_sub():0,
                          gcom ? gcom->new_sub():0);
       }