aboutsummaryrefslogtreecommitdiff
path: root/weed/s3api/auto_signature_v4_test.go
diff options
context:
space:
mode:
authorPatrick Schmidt <patrick.schmidt@innogames.com>2023-09-01 19:57:04 +0200
committerChris Lu <chrislusf@users.noreply.github.com>2023-09-05 10:33:27 -0700
commit98dcec0ee2023d24913941bfef7ecc5a7d2b78f8 (patch)
tree5c56c47e2feef02c4b08844fcc313d64f94486d8 /weed/s3api/auto_signature_v4_test.go
parentcdd817edf97fca305bb490b139d6a9b185d58f66 (diff)
downloadseaweedfs-98dcec0ee2023d24913941bfef7ecc5a7d2b78f8.tar.xz
seaweedfs-98dcec0ee2023d24913941bfef7ecc5a7d2b78f8.zip
Clean up old signature hash pools
Diffstat (limited to 'weed/s3api/auto_signature_v4_test.go')
-rw-r--r--weed/s3api/auto_signature_v4_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/weed/s3api/auto_signature_v4_test.go b/weed/s3api/auto_signature_v4_test.go
index 15ca90b93..8d0b677f8 100644
--- a/weed/s3api/auto_signature_v4_test.go
+++ b/weed/s3api/auto_signature_v4_test.go
@@ -127,7 +127,8 @@ func TestCheckAdminRequestAuthType(t *testing.T) {
func BenchmarkGetSignature(b *testing.B) {
t := time.Now()
iam := IdentityAccessManagement{
- hashes: make(map[string]*sync.Pool),
+ hashes: make(map[string]*sync.Pool),
+ hashCounters: make(map[string]*int32),
}
b.ReportAllocs()