465
thisShardID int32,
466
thatShardID int32,
468
>
if thisShardCount%thatShardCount != 0 && thatShardCount%thisShardCount != 0 {
469
panic(fmt.Sprintf("cannot verify shard ID mapping between diff shard count: %v vs %v",
470
thisShardCount, thatShardCount))
471
}
472
>
shardCountMin := min(thisShardCount, thatShardCount)
util.go
473
>
if thisShardID%shardCountMin == thatShardID%shardCountMin {
474
>
return nil
475
>
}
476
return serviceerror.NewInternalf(
477
"shard ID mapping verification failed; shard count: %v vs %v, shard ID: %v vs %v",