From ee8605e333bcf73bee137e05fc733819fcb5dfd0 Mon Sep 17 00:00:00 2001 From: karthic rao Date: Fri, 13 May 2016 16:33:38 +0530 Subject: [PATCH] Make bucket failure fix with high concurrent load (#1630) --- posix-list-dir-nix.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/posix-list-dir-nix.go b/posix-list-dir-nix.go index baec7db34..56bb6fd63 100644 --- a/posix-list-dir-nix.go +++ b/posix-list-dir-nix.go @@ -89,6 +89,7 @@ func parseDirents(dirPath string, buf []byte) (entries []string, err error) { // Could happen if it was deleted in the middle while // this list was being performed. if os.IsNotExist(err) { + err = nil continue } return nil, err @@ -104,7 +105,7 @@ func parseDirents(dirPath string, buf []byte) (entries []string, err error) { continue } } - return + return entries, nil } // Return all the entries at the directory dirPath.