diff options
Diffstat (limited to 'xlators/mgmt')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-op-sm.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-op-sm.c b/xlators/mgmt/glusterd/src/glusterd-op-sm.c index 65203328aff..89e6f47c911 100644 --- a/xlators/mgmt/glusterd/src/glusterd-op-sm.c +++ b/xlators/mgmt/glusterd/src/glusterd-op-sm.c @@ -1952,13 +1952,14 @@ gsync_status (char *master, char *slave, int *status) file = fopen (pidfile, "r+"); if (file) { - // ret = lockf (fileno (file), F_TEST, 0); - //if (ret == 0) - //*status = -1; - //else - *status = 0; + ret = lockf (fileno (file), F_TEST, 0); + if (ret == 0) + *status = -1; + else + *status = 0; } else *status = -1; + ret = 0; out: return ret; } |