From: cuixf Date: Tue, 21 Aug 2018 07:48:52 +0000 (+0800) Subject: tools/rados: correct the read offset of bench X-Git-Tag: v14.0.1~513^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F23667%2Fhead;p=ceph.git tools/rados: correct the read offset of bench We need read with the specified offset but not 0. Signed-off-by: Xiaofei Cui --- diff --git a/src/tools/rados/rados.cc b/src/tools/rados/rados.cc index d7d6ae0ec1d9..c1e29ca6b030 100644 --- a/src/tools/rados/rados.cc +++ b/src/tools/rados/rados.cc @@ -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,