]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: omap_get_all() fixes 12418/head
authorYehuda Sadeh <yehuda@redhat.com>
Mon, 28 Nov 2016 22:20:03 +0000 (14:20 -0800)
committerNathan Cutler <ncutler@suse.com>
Fri, 9 Dec 2016 14:20:43 +0000 (15:20 +0100)
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
(cherry picked from commit 99e866feb3f8aa0ff768d6253979b6b4fc0fa452)

src/rgw/rgw_rados.cc

index 8902557a1a5fcb07388c5d2955e83acad859750c..250fc63ca3686921547b58932b8f99f6432d6447 100644 (file)
@@ -7618,12 +7618,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;
     }