mirror of
https://github.com/ceph/ceph
synced 2025-02-21 18:17:42 +00:00
ceph-objectstore-tool: performance: Add --pgid for faster search for object by name
Fixes: http://tracker.ceph.com/issues/21327 Signed-off-by: David Zafman <dzafman@redhat.com>
This commit is contained in:
parent
e643d5c0fe
commit
14c5c834b9
@ -2921,7 +2921,11 @@ int main(int argc, char **argv)
|
||||
if (vm.count("objcmd") && (objcmd == "remove-clone-metadata"))
|
||||
head = true;
|
||||
lookup_ghobject lookup(object, nspace, head);
|
||||
if (action_on_all_objects(fs, lookup, debug)) {
|
||||
if (pgidstr.length())
|
||||
ret = action_on_all_objects_in_exact_pg(fs, coll_t(pgid), lookup, debug);
|
||||
else
|
||||
ret = action_on_all_objects(fs, lookup, debug);
|
||||
if (ret) {
|
||||
throw std::runtime_error("Internal error");
|
||||
} else {
|
||||
if (lookup.size() != 1) {
|
||||
|
Loading…
Reference in New Issue
Block a user