summaryrefslogtreecommitdiffstats
path: root/tools/glusterfind/src
diff options
context:
space:
mode:
authorAravinda VK <avishwan@redhat.com>2015-07-16 18:23:36 +0530
committerVenky Shankar <vshankar@redhat.com>2015-08-27 03:08:25 -0700
commitcf3d6f14ae031ba2f5269cea6dbf80e60d00cce5 (patch)
tree62e4e226ac37ecae24fece759ecd6343254f8655 /tools/glusterfind/src
parent0c47ef608b22ce719a0238c292cd8550986ad0cd (diff)
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 <avishwan@redhat.com> BUG: 1243838 Reviewed-on: http://review.gluster.org/11699 Tested-by: NetBSD Build System <jenkins@build.gluster.org> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Milind Changire <mchangir@redhat.com> Reviewed-by: Kotresh HR <khiremat@redhat.com>
Diffstat (limited to 'tools/glusterfind/src')
-rw-r--r--tools/glusterfind/src/main.py2
1 files changed, 1 insertions, 1 deletions
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))