|
|
cb8e9e |
From 1bffa4faeb00787b26f1316f3d60e2898ededdb7 Mon Sep 17 00:00:00 2001
|
|
|
cb8e9e |
From: Aravinda VK <avishwan@redhat.com>
|
|
|
cb8e9e |
Date: Thu, 16 Jul 2015 18:23:36 +0530
|
|
|
cb8e9e |
Subject: [PATCH 305/320] tools/glusterfind: Do not show session corrupted if no status file
|
|
|
cb8e9e |
|
|
|
cb8e9e |
When a glusterfind session is created it creates session directories
|
|
|
cb8e9e |
in all the nodes which are part of the Volume. But session status
|
|
|
cb8e9e |
file only present in initiated node.
|
|
|
cb8e9e |
|
|
|
cb8e9e |
Show Session corrupted only if status file exists and invalid content.
|
|
|
cb8e9e |
|
|
|
cb8e9e |
Change-Id: I8443c0335b872645b54c0aa77d9893dbe2589c92
|
|
|
cb8e9e |
Signed-off-by: Aravinda VK <avishwan@redhat.com>
|
|
|
cb8e9e |
BUG: 1232569
|
|
|
cb8e9e |
Reviewed-on: http://review.gluster.org/11699
|
|
|
cb8e9e |
Reviewed-on: http://review.gluster.org/12028
|
|
|
cb8e9e |
Reviewed-on: https://code.engineering.redhat.com/gerrit/56497
|
|
|
cb8e9e |
Reviewed-by: Milind Changire <mchangir@redhat.com>
|
|
|
cb8e9e |
Reviewed-by: Saravanakumar Arumugam <sarumuga@redhat.com>
|
|
|
cb8e9e |
Reviewed-by: Kotresh Hiremath Ravishankar <khiremat@redhat.com>
|
|
|
cb8e9e |
---
|
|
|
cb8e9e |
tools/glusterfind/src/main.py | 2 +-
|
|
|
cb8e9e |
1 files changed, 1 insertions(+), 1 deletions(-)
|
|
|
cb8e9e |
|
|
|
cb8e9e |
diff --git a/tools/glusterfind/src/main.py b/tools/glusterfind/src/main.py
|
|
|
cb8e9e |
index 9a6a2ac..b4d2c7e 100644
|
|
|
cb8e9e |
--- a/tools/glusterfind/src/main.py
|
|
|
cb8e9e |
+++ b/tools/glusterfind/src/main.py
|
|
|
cb8e9e |
@@ -519,7 +519,7 @@ def mode_list(session_dir, args):
|
|
|
cb8e9e |
last_processed = f.read().strip()
|
|
|
cb8e9e |
except (OSError, IOError) as e:
|
|
|
cb8e9e |
if e.errno == ENOENT:
|
|
|
cb8e9e |
- pass
|
|
|
cb8e9e |
+ continue
|
|
|
cb8e9e |
else:
|
|
|
cb8e9e |
raise
|
|
|
cb8e9e |
output.append((session, volname, last_processed))
|
|
|
cb8e9e |
--
|
|
|
cb8e9e |
1.7.1
|
|
|
cb8e9e |
|