From: Yehuda Sadeh Date: Mon, 28 Nov 2016 22:20:03 +0000 (-0800) Subject: rgw: omap_get_all() fixes X-Git-Tag: v11.1.0~77^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F12224%2Fhead;p=ceph.git rgw: omap_get_all() fixes Signed-off-by: Yehuda Sadeh --- diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index b87c12ecaabd2..6b35247509cae 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -11296,12 +11296,13 @@ int RGWRados::omap_get_all(rgw_obj& obj, bufferlist& header, return r; } - const int count = 1024; // ? +#define MAX_OMAP_GET_ENTRIES 1024 + const int count = MAX_OMAP_GET_ENTRIES; string start_after; while (true) { std::map t; - r = ref.ioctx.omap_get_vals(ref.oid, start_after, count, &m); + r = ref.ioctx.omap_get_vals(ref.oid, start_after, count, &t); if (r < 0) { return r; }