1
0
mirror of https://github.com/minio/minio.git synced 2025-04-04 03:40:30 -04:00

Send events for extracted objects ()

Fixes 
This commit is contained in:
Klaus Post 2023-07-31 08:33:51 -07:00 committed by GitHub
parent 715c9e3ca9
commit 684c46369c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2243,6 +2243,19 @@ func (api objectAPIHandlers) PutObjectExtractHandler(w http.ResponseWriter, r *h
}, replication.ObjectReplicationType, opts)); dsc.ReplicateAny() { }, replication.ObjectReplicationType, opts)); dsc.ReplicateAny() {
scheduleReplication(ctx, objInfo.Clone(), objectAPI, dsc, replication.ObjectReplicationType) scheduleReplication(ctx, objInfo.Clone(), objectAPI, dsc, replication.ObjectReplicationType)
} }
// Notify object created event.
evt := eventArgs{
EventName: event.ObjectCreatedPut,
BucketName: bucket,
Object: objInfo,
ReqParams: extractReqParams(r),
RespElements: extractRespElements(w),
UserAgent: r.UserAgent(),
Host: handlers.GetSourceIP(r),
}
sendEvent(evt)
return nil return nil
} }