Just pass on the error to the caller and be quiet.
Back story: for every PUT, Keep checks if the block already exists.
Prior to this patch, UnixVolume would complain loudly if the block did
not already exist in the volume (i.e. the normal case for a PUT).
func (v *UnixVolume) Read(loc string) ([]byte, error) {
blockFilename := filepath.Join(v.root, loc[0:3], loc)
buf, err := ioutil.ReadFile(blockFilename)
- if err != nil {
- log.Printf("%s: reading %s: %s\n", v, blockFilename, err)
- return nil, err
- }
-
- return buf, nil
+ return buf, err
}
// Write stores a block of data identified by the locator string