From: Sage Weil Date: Mon, 13 Jul 2015 20:37:08 +0000 (-0400) Subject: ceph-objecstore-tool: use new api X-Git-Tag: v9.1.0~346^2~64 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f0f87da907866f86aef303d55027dfb80e0d3958;p=ceph.git ceph-objecstore-tool: use new api Signed-off-by: Sage Weil --- diff --git a/src/tools/ceph_objectstore_tool.cc b/src/tools/ceph_objectstore_tool.cc index 29f16bb4028..1a767fb0a62 100644 --- a/src/tools/ceph_objectstore_tool.cc +++ b/src/tools/ceph_objectstore_tool.cc @@ -83,6 +83,7 @@ int _action_on_all_objects_in_pg(ObjectStore *store, coll_t coll, action_on_obje coll, next, ghobject_t::get_max(), + true, LIST_AT_A_TIME, &list, &next); @@ -411,7 +412,7 @@ void remove_coll(ObjectStore *store, const coll_t &coll) cout << "remove_coll " << coll << std::endl; while (!next.is_max()) { vector objects; - r = store->collection_list(coll, next, ghobject_t::get_max(), 300, + r = store->collection_list(coll, next, ghobject_t::get_max(), true, 300, &objects, &next); if (r < 0) goto out; @@ -699,7 +700,7 @@ int ObjectStoreTool::export_files(ObjectStore *store, coll_t coll) while (!next.is_max()) { vector objects; - int r = store->collection_list(coll, next, ghobject_t::get_max(), 300, + int r = store->collection_list(coll, next, ghobject_t::get_max(), true, 300, &objects, &next); if (r < 0) return r;