]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: fix configurable write obj window size 13934/head
authorhechuang <hechuang@xsky.com>
Mon, 13 Mar 2017 07:00:26 +0000 (15:00 +0800)
committerhechuang <hechuang@xsky.com>
Mon, 13 Mar 2017 07:00:26 +0000 (15:00 +0800)
Should use read_len in the copy_obj_data() function, "end-ofs+1" is not necessarily the
written.

Signed-off-by: hechuang <hechuang@xsky.com>
src/rgw/rgw_rados.cc

index af00d1980ce9653c1ed1625ac7b33dbb30b8b64f..12d05d6979d54399f3b4f864e1805a080b2871d7 100644 (file)
@@ -7684,7 +7684,7 @@ int RGWRados::copy_obj_data(RGWObjectCtx& obj_ctx,
       if (ret < 0) {
         return ret;
       }
-      ret = processor.throttle_data(handle, obj, end - ofs + 1, false);
+      ret = processor.throttle_data(handle, obj, read_len, false);
       if (ret < 0)
         return ret;
     } while (again);