]> 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 69606/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>
Fri, 19 Jun 2026 19:57:15 +0000 (14:57 -0500)
commit03ff097c3efe028a07ac8f22bd36a7c4374208f0
treea72b639897e3f0b4f3fc8e7f0781e85bb1048945
parentf72d676118b34e0efa4fa3db7562a9a41e23b66a
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>
(cherry picked from commit d2e487acfe9ed45b30d879844bfdbc7d5f1ff343)
src/rgw/rgw_restore.cc