From 1b5ba4190cd9d7b0324ba004a9cb2677310e55d1 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Sat, 3 Feb 2024 13:45:59 -0800 Subject: [PATCH] avoid timestamp overflow --- weed/cluster/lock_manager/distributed_lock_manager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/cluster/lock_manager/distributed_lock_manager.go b/weed/cluster/lock_manager/distributed_lock_manager.go index 6676c0a67..8d7a20dbb 100644 --- a/weed/cluster/lock_manager/distributed_lock_manager.go +++ b/weed/cluster/lock_manager/distributed_lock_manager.go @@ -7,7 +7,7 @@ import ( "time" ) -const MaxDuration = 1<<63 - 1 +const MaxDuration = time.Hour * 24 * 365 * 100 var NoLockServerError = fmt.Errorf("no lock server found")