mirror: FS should ignore some non supported S3 events (#3554)
Bucket creation & removal are events only supported by MinIO server and they are not meaningful for FS. Just ignore them at FS level and avoid reporting an error.
This commit is contained in:
+2
-1
@@ -149,7 +149,8 @@ func (f *fsClient) Watch(ctx context.Context, options WatchOptions) (*WatchObjec
|
||||
case "get":
|
||||
fsEvents = append(fsEvents, EventTypeGet...)
|
||||
default:
|
||||
return nil, errInvalidArgument().Trace(event)
|
||||
// Event type not supported by FS client, such as
|
||||
// bucket creation or deletion, ignore it.
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user