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:
Anis Elleuch
2020-12-30 07:02:10 -08:00
committed by GitHub
parent c00afbc516
commit e13737383f
+2 -1
View File
@@ -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.
}
}