Allow metadata updates on meta bucket even in WORM mode (#8657)

This ensures that we can update the

- .minio.sys is updated for accounting/data usage purposes
- .minio.sys is updated to indicate if backend is encrypted
  or not.
This commit is contained in:
Harshavardhana
2019-12-17 10:13:12 -08:00
committed by GitHub
parent 16ac4a3c64
commit 5f2318567e
9 changed files with 10 additions and 82 deletions
+1 -1
View File
@@ -683,7 +683,7 @@ func (fs *FSObjects) CompleteMultipartUpload(ctx context.Context, bucket string,
}
// Deny if WORM is enabled
if globalWORMEnabled {
if _, ok := isWORMEnabled(bucket); ok {
if _, err := fsStatFile(ctx, pathJoin(fs.fsPath, bucket, object)); err == nil {
return ObjectInfo{}, ObjectAlreadyExists{Bucket: bucket, Object: object}
}