From 99e866feb3f8aa0ff768d6253979b6b4fc0fa452 Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Mon, 28 Nov 2016 14:20:03 -0800 Subject: [PATCH] rgw: omap_get_all() fixes Signed-off-by: Yehuda Sadeh --- src/rgw/rgw_rados.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; } -- 2.47.3