Skip to content
Snippets Groups Projects
Commit 1b9a82d2 authored by Ashwin's avatar Ashwin
Browse files

mod before minIdx

parent d5e43de3
No related branches found
No related tags found
No related merge requests found
......@@ -95,7 +95,7 @@ func init() {
func allocateUniqueUid(xid string, instanceIdx uint64, numInstances uint64) (uid uint64, rerr error) {
mod := math.MaxUint64 / numInstances
minIdx := instanceIdx * math.MaxUint64 / numInstances
minIdx := instanceIdx * mod
for sp := ""; ; sp += " " {
txid := xid + sp
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment