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

mod before minIdx

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