Revert "Make localLocker lock attempts cancellable (#16510)" (#16884)

This commit is contained in:
Klaus Post
2023-03-23 10:26:21 -07:00
committed by GitHub
parent b1b0aadabf
commit 8b0ab6ead6
2 changed files with 93 additions and 115 deletions
+5 -1
View File
@@ -21,6 +21,7 @@ import (
"context"
"os"
"reflect"
"sync"
"testing"
"github.com/minio/minio/internal/dsync"
@@ -37,7 +38,10 @@ func createLockTestServer(ctx context.Context, t *testing.T) (string, *lockRESTS
}
locker := &lockRESTServer{
ll: newLocker(),
ll: &localLocker{
mutex: sync.Mutex{},
lockMap: make(map[string][]lockRequesterInfo),
},
}
creds := globalActiveCred
token, err := authenticateNode(creds.AccessKey, creds.SecretKey, "")