|
|
@ -1261,7 +1261,7 @@ func (api objectAPIHandlers) CopyObjectHandler(w http.ResponseWriter, r *http.Re |
|
|
|
response := generateCopyObjectResponse(objInfo.ETag, objInfo.ModTime) |
|
|
|
response := generateCopyObjectResponse(objInfo.ETag, objInfo.ModTime) |
|
|
|
encodedSuccessResponse := encodeResponse(response) |
|
|
|
encodedSuccessResponse := encodeResponse(response) |
|
|
|
if mustReplicate(ctx, r, dstBucket, dstObject, objInfo.UserDefined, objInfo.ReplicationStatus.String()) { |
|
|
|
if mustReplicate(ctx, r, dstBucket, dstObject, objInfo.UserDefined, objInfo.ReplicationStatus.String()) { |
|
|
|
defer replicateObject(context.Background(), dstBucket, dstObject, objInfo.VersionID, objectAPI, &eventArgs{ |
|
|
|
defer replicateObject(GlobalContext, dstBucket, dstObject, objInfo.VersionID, objectAPI, &eventArgs{ |
|
|
|
EventName: event.ObjectCreatedCopy, |
|
|
|
EventName: event.ObjectCreatedCopy, |
|
|
|
BucketName: dstBucket, |
|
|
|
BucketName: dstBucket, |
|
|
|
Object: objInfo, |
|
|
|
Object: objInfo, |
|
|
@ -1577,7 +1577,7 @@ func (api objectAPIHandlers) PutObjectHandler(w http.ResponseWriter, r *http.Req |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if mustReplicate(ctx, r, bucket, object, metadata, "") { |
|
|
|
if mustReplicate(ctx, r, bucket, object, metadata, "") { |
|
|
|
defer replicateObject(context.Background(), bucket, object, objInfo.VersionID, objectAPI, &eventArgs{ |
|
|
|
defer replicateObject(GlobalContext, bucket, object, objInfo.VersionID, objectAPI, &eventArgs{ |
|
|
|
EventName: event.ObjectCreatedPut, |
|
|
|
EventName: event.ObjectCreatedPut, |
|
|
|
BucketName: bucket, |
|
|
|
BucketName: bucket, |
|
|
|
Object: objInfo, |
|
|
|
Object: objInfo, |
|
|
@ -2652,7 +2652,7 @@ func (api objectAPIHandlers) CompleteMultipartUploadHandler(w http.ResponseWrite |
|
|
|
|
|
|
|
|
|
|
|
setPutObjHeaders(w, objInfo, false) |
|
|
|
setPutObjHeaders(w, objInfo, false) |
|
|
|
if mustReplicate(ctx, r, bucket, object, objInfo.UserDefined, objInfo.ReplicationStatus.String()) { |
|
|
|
if mustReplicate(ctx, r, bucket, object, objInfo.UserDefined, objInfo.ReplicationStatus.String()) { |
|
|
|
defer replicateObject(context.Background(), bucket, object, objInfo.VersionID, objectAPI, &eventArgs{ |
|
|
|
defer replicateObject(GlobalContext, bucket, object, objInfo.VersionID, objectAPI, &eventArgs{ |
|
|
|
EventName: event.ObjectCreatedCompleteMultipartUpload, |
|
|
|
EventName: event.ObjectCreatedCompleteMultipartUpload, |
|
|
|
BucketName: bucket, |
|
|
|
BucketName: bucket, |
|
|
|
Object: objInfo, |
|
|
|
Object: objInfo, |
|
|
|