update notification rulesMap when reloading bucketMetadata (#9917)

master
Praveen raj Mani 4 years ago committed by GitHub
parent 2f681bed57
commit cf5d051afc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      cmd/peer-rest-server.go

@ -606,6 +606,10 @@ func (s *peerRESTServer) LoadBucketMetadataHandler(w http.ResponseWriter, r *htt
}
globalBucketMetadataSys.Set(bucketName, meta)
if meta.notificationConfig != nil {
globalNotificationSys.AddRulesMap(bucketName, meta.notificationConfig.ToRulesMap())
}
}
// ReloadFormatHandler - Reload Format.

Loading…
Cancel
Save