XL: Rename, cleanup and add more comments. (#1769)

- xl-v1-bucket.go - removes a whole bunch of code.
- {xl-v1,fs-v1}-metadata.go - add a lot of comments and rename functions
   appropriately.
This commit is contained in:
Harshavardhana
2016-05-26 03:15:01 -07:00
committed by Harshavardhana
parent 553fdb9211
commit b2293c2bf4
19 changed files with 207 additions and 290 deletions
+2 -5
View File
@@ -28,13 +28,10 @@ const (
)
// InvalidRange - invalid range
type InvalidRange struct {
Start int64
Length int64
}
type InvalidRange struct{}
func (e InvalidRange) Error() string {
return fmt.Sprintf("Invalid range start:%d length:%d", e.Start, e.Length)
return "The requested range is not satisfiable"
}
// HttpRange specifies the byte range to be sent to the client.