]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tools/rados: correct the read offset of bench 23667/head
authorcuixf <cuixiaofei@sangfor.com.cn>
Tue, 21 Aug 2018 07:48:52 +0000 (15:48 +0800)
committerXiaofei Cui <cuixiaofei@sangfor.com.cn>
Tue, 21 Aug 2018 07:49:42 +0000 (15:49 +0800)
We need read with the specified offset but not 0.

Signed-off-by: Xiaofei Cui <cuixiaofei@sangfor.com.cn>
src/tools/rados/rados.cc

index d7d6ae0ec1d9884c6c54e3b8a1eb990600df0660..c1e29ca6b030e1c3ae9077d9caeef7c1096f72db 100644 (file)
@@ -913,7 +913,7 @@ protected:
 
   int aio_read(const std::string& oid, int slot, bufferlist *pbl, size_t len,
               size_t offset) override {
-    return io_ctx.aio_read(oid, completions[slot], pbl, len, 0);
+    return io_ctx.aio_read(oid, completions[slot], pbl, len, offset);
   }
 
   int aio_write(const std::string& oid, int slot, bufferlist& bl, size_t len,