]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rados: omap bench: pass null for pmore for omap fetch
authorSage Weil <sage@redhat.com>
Mon, 16 Jan 2017 20:16:46 +0000 (15:16 -0500)
committerSage Weil <sage@redhat.com>
Fri, 20 Jan 2017 22:52:18 +0000 (17:52 -0500)
Assume OSD limits are high enough for us.

Signed-off-by: Sage Weil <sage@redhat.com>
src/test/omap_bench.cc

index 9e95c8499119eae12705cfcba9230f09b8c81805..a6305378106d386c3b5df672fa9ee2fbf5a0897e 100644 (file)
@@ -232,7 +232,9 @@ int OmapBench::print_written_omap() {
     objstrm << prefix;
     objstrm << i;
     cout << "\nPrinting omap for "<<objstrm.str() << std::endl;
-    key_read.omap_get_keys("", LONG_MAX, &out_keys, &err);
+    // FIXME: we ignore pmore here.  this shouldn't happen for benchmark
+    // keys, though, unless the OSD limit is *really* low.
+    key_read.omap_get_keys2("", LONG_MAX, &out_keys, nullptr, &err);
     io_ctx.operate(objstrm.str(), &key_read, NULL);
     if (err < 0) {
       cout << "error " << err;