]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
librgw: don't increment offset at rcb (it is no longer a counter)
authorMatt Benjamin <mbenjamin@redhat.com>
Tue, 22 Dec 2015 06:18:48 +0000 (01:18 -0500)
committerMatt Benjamin <mbenjamin@redhat.com>
Fri, 12 Feb 2016 17:07:13 +0000 (12:07 -0500)
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
src/rgw/rgw_file.h

index c0636caa089229a5d739870adb3f27e8e6753f09..2c050331075cab549e01a5d3447aa1ef86b77913 100644 (file)
@@ -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;
   }