From 7dec0933c112ce80f5ccda3e223158b94d5bce4d Mon Sep 17 00:00:00 2001 From: Ward Vandewege Date: Thu, 3 Jul 2014 22:28:45 -0400 Subject: [PATCH] Revert "Do not print an error when hitting 'not found' with a the MockVolume" This reverts commit 97c9b2b49f94735c6d4d5b62b772089ef7e0e3bf. Better solution in the next commit. --- services/keep/src/keep/keep.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/services/keep/src/keep/keep.go b/services/keep/src/keep/keep.go index 373a36f581..67c628d128 100644 --- a/services/keep/src/keep/keep.go +++ b/services/keep/src/keep/keep.go @@ -575,13 +575,12 @@ func GetBlock(hash string) ([]byte, error) { for _, vol := range KeepVM.Volumes() { if buf, err := vol.Get(hash); err != nil { // IsNotExist is an expected error and may be ignored. - // "not found" is the equivalent for the MockVolume backend. // (If all volumes report IsNotExist, we return a NotFoundError) // A CorruptError should be returned immediately. // Any other errors should be logged but we continue trying to // read. switch { - case (os.IsNotExist(err) || err.Error() == "not found"): + case os.IsNotExist(err): continue default: log.Printf("GetBlock: reading %s: %s\n", hash, err) -- 2.30.2