mirror of
https://github.com/minio/minio.git
synced 2025-03-27 16:00:57 -04:00
allow retries for transaction lock on startup (#16273)
This commit is contained in:
parent
e57e946206
commit
5a218f38a1
@ -358,9 +358,8 @@ func initServer(ctx context.Context, newObject ObjectLayer) error {
|
||||
r := rand.New(rand.NewSource(time.Now().UnixNano()))
|
||||
|
||||
lockTimeout := newDynamicTimeoutWithOpts(dynamicTimeoutOpts{
|
||||
timeout: 5 * time.Second,
|
||||
minimum: 3 * time.Second,
|
||||
retryInterval: -1, // do not retry to avoid high contention on startup.
|
||||
timeout: 5 * time.Second,
|
||||
minimum: 3 * time.Second,
|
||||
})
|
||||
|
||||
// Do an initial random sleep to avoid stampeding herd of initial
|
||||
|
Loading…
x
Reference in New Issue
Block a user