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() { ...@@ -95,7 +95,7 @@ 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) {
mod := math.MaxUint64 / numInstances mod := math.MaxUint64 / numInstances
minIdx := instanceIdx * math.MaxUint64 / numInstances minIdx := instanceIdx * mod
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