mirror of
https://github.com/hashicorp/vault.git
synced 2025-11-21 18:51:41 +01:00
Fix compile on 32-bit platforms
This commit is contained in:
parent
37689d29d5
commit
6d79e86cf1
@ -621,9 +621,9 @@ func (i *MySQLLock) becomeLeader() error {
|
||||
func (i *MySQLLock) Lock() error {
|
||||
defer metrics.MeasureSince([]string{"mysql", "get_lock"}, time.Now())
|
||||
|
||||
// Lock timeout math.MaxUint32 instead of -1 solves compatibility issues with
|
||||
// Lock timeout math.MaxInt32 instead of -1 solves compatibility issues with
|
||||
// different MySQL flavours i.e. MariaDB
|
||||
rows, err := i.in.Query("SELECT GET_LOCK(?, ?), IS_USED_LOCK(?)", i.key, math.MaxUint32, i.key)
|
||||
rows, err := i.in.Query("SELECT GET_LOCK(?, ?), IS_USED_LOCK(?)", i.key, math.MaxInt32, i.key)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user