From cf3d6f14ae031ba2f5269cea6dbf80e60d00cce5 Mon Sep 17 00:00:00 2001 From: Aravinda VK Date: Thu, 16 Jul 2015 18:23:36 +0530 Subject: tools/glusterfind: Do not show session corrupted if no status file When a glusterfind session is created it creates session directories in all the nodes which are part of the Volume. But session status file only present in initiated node. Show Session corrupted only if status file exists and invalid content. Change-Id: I8443c0335b872645b54c0aa77d9893dbe2589c92 Signed-off-by: Aravinda VK BUG: 1243838 Reviewed-on: http://review.gluster.org/11699 Tested-by: NetBSD Build System Tested-by: Gluster Build System Reviewed-by: Milind Changire Reviewed-by: Kotresh HR --- tools/glusterfind/src/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/glusterfind/src/main.py b/tools/glusterfind/src/main.py index f265a4a1085..a2c3c442c83 100644 --- a/tools/glusterfind/src/main.py +++ b/tools/glusterfind/src/main.py @@ -525,7 +525,7 @@ def mode_list(session_dir, args): last_processed = f.read().strip() except (OSError, IOError) as e: if e.errno == ENOENT: - pass + continue else: raise output.append((session, volname, last_processed)) -- cgit