summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-utils.c
diff options
context:
space:
mode:
authorshishir gowda <shishirng@gluster.com>2010-09-15 02:02:05 +0000
committerVijay Bellur <vijay@dev.gluster.com>2010-09-15 02:18:04 -0700
commit560842297b9a067f358d3c3969eb3bdbb6132036 (patch)
treee41ede0b2cc5a7e3070c8d78d5e6487ed250995f /xlators/mgmt/glusterd/src/glusterd-utils.c
parent1fc3aed7cf33b96f33693eee3c0551a0ab6a1f0f (diff)
Volume stop/start fails sometimes
If the pid file is not present, do not fail the volume stop. Signed-off-by: shishir gowda <shishirng@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1602 (Volume start/stop sometime fails.) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1602
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-utils.c')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-utils.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.c b/xlators/mgmt/glusterd/src/glusterd-utils.c
index f85fe2babc6..4ef0bd17bc2 100644
--- a/xlators/mgmt/glusterd/src/glusterd-utils.c
+++ b/xlators/mgmt/glusterd/src/glusterd-utils.c
@@ -866,6 +866,11 @@ glusterd_volume_stop_glusterfs (glusterd_volinfo_t *volinfo,
if (!file) {
gf_log ("", GF_LOG_ERROR, "Unable to open pidfile: %s",
pidfile);
+ if (errno == ENOENT) {
+ gf_log ("",GF_LOG_TRACE, "volume may not be running");
+ ret = 0;
+ goto out;
+ }
ret = -1;
goto out;
}