Run replication in the background (#10491)

This commit is contained in:
Ritesh H Shukla
2020-09-15 18:44:58 -07:00
committed by GitHub
parent 8ea55f9dba
commit 5c47ce456e
2 changed files with 4 additions and 4 deletions

View File

@@ -1166,7 +1166,7 @@ func (web *webAPIHandlers) Upload(w http.ResponseWriter, r *http.Request) {
}
}
if mustReplicate {
defer replicateObject(GlobalContext, bucket, object, objInfo.VersionID, objectAPI, &eventArgs{
go replicateObject(GlobalContext, bucket, object, objInfo.VersionID, objectAPI, &eventArgs{
EventName: event.ObjectCreatedPut,
BucketName: bucket,
Object: objInfo,