mirror of
https://github.com/minio/minio.git
synced 2026-11-19 23:03:17 +00:00
objectLayer: Check for format.json in a wrapped disk. (#3311)
This is needed to validate if the `format.json` indeed exists when a fresh node is brought online. This wrapped implementation also connects to the remote node by attempting a re-login. Subsequently after a successful connect `format.json` is validated as well. Fixes #3207
This commit is contained in:
1 parent
7a5bbf7a2e
commit
6efee2072d
26 files changed
+877
-194
No files matched your search
@@ -68,7 +68,7 @@ func (l *localFile) Fire(entry *logrus.Entry) error {
|
||||
if err != nil {
|
||||
return fmt.Errorf("Unable to read entry, %v", err)
|
||||
}
|
||||
l.File.Write([]byte(line + "\n"))
|
||||
l.File.Write([]byte(line))
|
||||
l.File.Sync()
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user