summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd
diff options
context:
space:
mode:
authorAravinda VK <avishwan@redhat.com>2015-05-09 00:26:14 +0530
committerVijay Bellur <vbellur@redhat.com>2015-05-08 20:28:13 -0700
commit77edf5f7f78d5a551526b0d9bef8e0c0a8f22c1c (patch)
tree33e27c90b7e5e5f4e2919c5c34425d04a9da0d4a /xlators/mgmt/glusterd
parent5fda96d954dd06dbacc6b2851d4ba058ec1295a2 (diff)
geo-rep: Fix corrupt gsyncd output
When gsyncd fails with Python traceback, glusterd fails parsing gsyncd output and shows error. BUG: 1219937 Change-Id: Ic32fd897c49a5325294a6588351b539c6e124338 Signed-off-by: Aravinda VK <avishwan@redhat.com> Reviewed-on: http://review.gluster.org/10694 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-geo-rep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-geo-rep.c b/xlators/mgmt/glusterd/src/glusterd-geo-rep.c
index 6b95beed490..b5020b741d2 100644
--- a/xlators/mgmt/glusterd/src/glusterd-geo-rep.c
+++ b/xlators/mgmt/glusterd/src/glusterd-geo-rep.c
@@ -1474,7 +1474,7 @@ glusterd_check_geo_rep_configured (glusterd_volinfo_t *volinfo,
/*
* is_geo_rep_active:
* This function reads the state_file and sets is_active to 1 if the
- * monitor status is neither "Stopped" or "Not Started"
+ * monitor status is neither "Stopped" or "Created"
*
* RETURN VALUE:
* 0: On successful read of state_file.
@@ -1530,7 +1530,7 @@ is_geo_rep_active (glusterd_volinfo_t *volinfo, char *slave,
}
if ((!strcmp(monitor_status, "Stopped")) ||
- (!strcmp(monitor_status, "Not Started"))) {
+ (!strcmp(monitor_status, "Created"))) {
*is_active = 0;
} else {
*is_active = 1;