The lei/store bug was resolved and thus the comments and
assertions are no longer necessary.
Followup-to: 99fc3d76 (v2writable: done: force synchronous awaitpid, 2024-11-19)
sub idx_shard ($$) {
my ($self, $num) = @_;
- # FIXME: lei_store bug somewhere..
- confess 'BUG: {idx_shards} unset' if !$self->{idx_shards};
- confess 'BUG: {idx_shards} empty' if !@{$self->{idx_shards}};
$self->{idx_shards}->[$num % scalar(@{$self->{idx_shards}})];
}