mirror of https://github.com/minio/minio.git
allow retries for transaction lock on startup (#16273)
This commit is contained in:
parent
e57e946206
commit
5a218f38a1
|
@ -360,7 +360,6 @@ func initServer(ctx context.Context, newObject ObjectLayer) error {
|
||||||
lockTimeout := newDynamicTimeoutWithOpts(dynamicTimeoutOpts{
|
lockTimeout := newDynamicTimeoutWithOpts(dynamicTimeoutOpts{
|
||||||
timeout: 5 * time.Second,
|
timeout: 5 * time.Second,
|
||||||
minimum: 3 * time.Second,
|
minimum: 3 * time.Second,
|
||||||
retryInterval: -1, // do not retry to avoid high contention on startup.
|
|
||||||
})
|
})
|
||||||
|
|
||||||
// Do an initial random sleep to avoid stampeding herd of initial
|
// Do an initial random sleep to avoid stampeding herd of initial
|
||||||
|
|
Loading…
Reference in New Issue