Support ARM release builds

This commit is contained in:
Ben Johnson
2021-04-10 08:18:37 -06:00
parent 178cf836b1
commit 462330ead6
6 changed files with 69 additions and 39 deletions

View File

@@ -1109,7 +1109,7 @@ func WALIndexAt(ctx context.Context, r Replica, generation string, maxIndex int,
}
// If max index is specified but not found, return an error.
if maxIndex != math.MaxInt64 && index != maxIndex {
if maxIndex != math.MaxInt32 && index != maxIndex {
return index, fmt.Errorf("unable to locate index %d in generation %q, highest index was %d", maxIndex, generation, index)
}
return index, nil