XL: Format heal should re-allocate new UUIDs not reuse. (#1953)

This patch also supports writing to a temporary file and renaming
rather than appending to an existing file. This helps in avoiding
inconsistent files.
This commit is contained in:
Harshavardhana
2016-06-22 17:18:31 -07:00
committed by Anand Babu (AB) Periasamy
parent e10934a88e
commit f4830162a4
2 changed files with 141 additions and 106 deletions

View File

@@ -28,8 +28,13 @@ import (
const (
// Format config file carries backend format specific details.
formatConfigFile = "format.json"
// Format config tmp file carries backend format.
formatConfigFileTmp = "format.json.tmp"
// XL metadata file carries per object metadata.
xlMetaJSONFile = "xl.json"
// Uploads metadata file carries per multipart object metadata.
uploadsJSONFile = "uploads.json"
)