]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw/restore: take the hash mod HASH_PRIME when picking a shard 69373/head
authorMatthew N. Heler <matthew.heler@hotmail.com>
Tue, 9 Jun 2026 22:21:39 +0000 (17:21 -0500)
committerMatthew N. Heler <matthew.heler@hotmail.com>
Tue, 9 Jun 2026 23:34:47 +0000 (18:34 -0500)
commitd2e487acfe9ed45b30d879844bfdbc7d5f1ff343
tree6ceefa166d6a8b0b67244cb89e279880cb3398f3
parent56253c4ae02ecffcf878f5046839991f3e7b0d0e
rgw/restore: take the hash mod HASH_PRIME when picking a shard

choose_oid fed ceph_str_hash_linux straight into % max_objs, and the
low bits of that hash are weak enough that similar object names keep
landing on the same shard. LC takes the hash mod HASH_PRIME first for
exactly this reason, do the same here.

Signed-off-by: Matthew N. Heler <matthew.heler@hotmail.com>
src/rgw/rgw_restore.cc