From: Matt Benjamin Date: Tue, 22 Dec 2015 06:18:48 +0000 (-0500) Subject: librgw: don't increment offset at rcb (it is no longer a counter) X-Git-Tag: v10.1.0~382^2~78 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=49a034afeaf5b7de2663620390f358540ced4aa0;p=ceph.git librgw: don't increment offset at rcb (it is no longer a counter) Signed-off-by: Matt Benjamin --- diff --git a/src/rgw/rgw_file.h b/src/rgw/rgw_file.h index c0636caa0892..2c050331075c 100644 --- a/src/rgw/rgw_file.h +++ b/src/rgw/rgw_file.h @@ -817,7 +817,7 @@ public: *offset = off; /* update traversal cache */ rgw_fh->add_marker(off, marker, RGW_FS_TYPE_DIRECTORY); - rcb(name.data(), cb_arg, (*offset)++); + rcb(name.data(), cb_arg, off); return 0; }