From 5a218f38a1f9af2ab9cf80e47fd1dc510f66d761 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Mon, 19 Dec 2022 22:00:00 -0800 Subject: [PATCH] allow retries for transaction lock on startup (#16273) --- cmd/server-main.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cmd/server-main.go b/cmd/server-main.go index 965ca6145..8ae35ba36 100644 --- a/cmd/server-main.go +++ b/cmd/server-main.go @@ -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