XL/tree-walk: Added comments, changed variable names and structure fields to improve code readability. (#1856)

This commit is contained in:
Krishna Srinivas
2016-06-06 00:25:45 +05:30
committed by Anand Babu (AB) Periasamy
parent 37551a2ad3
commit acc393ba8b
4 changed files with 85 additions and 76 deletions

View File

@@ -44,7 +44,7 @@ type xlObjects struct {
writeQuorum int // writeQuorum minimum required disks to write data.
// List pool management.
listPool *treeWalkerPool
listPool *treeWalkPool
}
// errXLMaxDisks - returned for reached maximum of disks.
@@ -161,7 +161,7 @@ func newXLObjects(disks []string) (ObjectLayer, error) {
storageDisks: newPosixDisks,
dataBlocks: dataBlocks,
parityBlocks: parityBlocks,
listPool: newTreeWalkerPool(globalLookupTimeout),
listPool: newTreeWalkPool(globalLookupTimeout),
}
// Figure out read and write quorum based on number of storage disks.