mirror of
https://github.com/minio/minio.git
synced 2025-11-07 21:02:58 -05:00
Fix writing 'format.json' and make it atomic (#8296)
- Choose a unique uuid such that under situations of duplicate mounts we do not append to an existing json entry. - Avoid AppendFile instead use WriteAll() to write the entire byte array atomically.
This commit is contained in:
@@ -20,9 +20,6 @@ package cmd
|
||||
const (
|
||||
// Format config file carries backend format specific details.
|
||||
formatConfigFile = "format.json"
|
||||
|
||||
// Format config tmp file carries backend format.
|
||||
formatConfigFileTmp = "format.json.tmp"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
Reference in New Issue
Block a user