Skip to content

Commit

Permalink
rgw: omap_get_all() fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
  • Loading branch information
yehudasa committed Nov 29, 2016
1 parent 7cd123e commit 99e866f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/rgw/rgw_rados.cc
Expand Up @@ -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<string, bufferlist> 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;
}
Expand Down

0 comments on commit 99e866f

Please sign in to comment.