Skip to content

Commit cdb6321

Browse files
authored
Merge pull request ceph#64696 from rzarzynski/wip-bug-71966
tools: make rados ls aware about the locator concept Reviewed-by: Matan Breizman <[email protected]>
2 parents 100415d + 94c4ffa commit cdb6321

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/tools/rados/rados.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2533,7 +2533,8 @@ static int rados_tool_common(const std::map < std::string, std::string > &opts,
25332533
#endif // WITH_LIBRADOSSTRIPER
25342534
if (pgid) {
25352535
uint32_t ps;
2536-
if (io_ctx.get_object_pg_hash_position2(i->get_oid(), &ps) || pgid->ps() != ps) {
2536+
if (const auto& key = i->get_locator().size() ? i->get_locator() : i->get_oid();
2537+
io_ctx.get_object_pg_hash_position2(key, &ps) || pgid->ps() != ps) {
25372538
break;
25382539
}
25392540
}

0 commit comments

Comments
 (0)