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

mod before minIdx

parent 8a1b0c32
No related branches found
No related tags found
No related merge requests found
......@@ -94,8 +94,8 @@ func init() {
func allocateUniqueUid(xid string, instanceIdx uint64, numInstances uint64) (uid uint64, rerr error) {
minIdx := instanceIdx * math.MaxUint64 / numInstances
mod := math.MaxUint64 / numInstances
minIdx := instanceIdx * math.MaxUint64 / numInstances
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