allow retries for transaction lock on startup (#16273)

This commit is contained in:
Harshavardhana 2022-12-19 22:00:00 -08:00 committed by GitHub
parent e57e946206
commit 5a218f38a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -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