mirror of
https://github.com/minio/minio.git
synced 2025-11-21 02:09:08 -05:00
- When modifying notification configuration - When modifying listener configuration - When modifying policy configuration With this change we also stop early checking if the bucket exists, since that uses a Read-lock and causes a deadlock due to the outer Write-lock.
This commit is contained in:
committed by
Harshavardhana
parent
0905398459
commit
3977d6b7bd
@@ -277,15 +277,6 @@ func TestInitEventNotifier(t *testing.T) {
|
||||
},
|
||||
}
|
||||
|
||||
// write without an existing bucket and check
|
||||
if err := persistNotificationConfig(bucketName, ¬ificationConfig{}, obj); err == nil {
|
||||
t.Fatalf("Did not get an error though bucket does not exist!")
|
||||
}
|
||||
// no bucket write check for listener
|
||||
if err := persistListenerConfig(bucketName, []listenerConfig{}, obj); err == nil {
|
||||
t.Fatalf("Did not get an error though bucket does not exist!")
|
||||
}
|
||||
|
||||
// create bucket
|
||||
if err := obj.MakeBucket(bucketName); err != nil {
|
||||
t.Fatal("Unexpected error:", err)
|
||||
|
||||
Reference in New Issue
Block a user