mirror of
https://github.com/minio/minio.git
synced 2026-11-21 15:08:19 +00:00
fix: log if there is readDir() failure with ListBuckets (#15461)
This is actionable and must be logged. Bonus: also honor umask by using 0o666 for all Open() syscalls.
This commit is contained in:
1 parent
2871cb5775
commit
3bd9615d0e
6 files changed
+40
-20
No files matched your search
+1
-1
@@ -867,7 +867,7 @@ func (fs *FSObjects) getObjectInfoNoFSLock(ctx context.Context, bucket, object s
|
||||
// Read `fs.json` to perhaps contend with
|
||||
// parallel Put() operations.
|
||||
|
||||
rc, _, err := fsOpenFile(ctx, fsMetaPath, 0)
|
||||
rc, _, err := fsOpenFile(ctx, fsMetaPath, 0o666)
|
||||
if err == nil {
|
||||
fsMetaBuf, rerr := ioutil.ReadAll(rc)
|
||||
rc.Close()
|
||||
|
||||
Reference in new issue
Block a user