diff options
author | Mohammed Junaid <junaid@redhat.com> | 2012-03-19 11:34:42 +0530 |
---|---|---|
committer | Anand Avati <avati@redhat.com> | 2013-02-07 13:36:25 -0800 |
commit | ed74054de625f7ad61049e3e1a8737da5daaa4ee (patch) | |
tree | 216a799e332d1c469a4986f1ac5551c3c875816b /xlators/features/marker/src/marker.c | |
parent | bcf26bf433f8227a4730407a267bd80044531157 (diff) |
features/marker: Replacing -1 with GF_CLIENT_PID_GSYNCD as part of code cleanup.release-3.2
To Keep the code(rel-3.2) consistent with the master(rel-3.3) branch.
Change-Id: I6a052a35abf022d5551ec9b59db0ae19f81f326d
BUG: 769494
Signed-off-by: Mohammed Junaid <junaid@redhat.com>
Reviewed-on: http://review.gluster.org/2969
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Csaba Henk <csaba@redhat.com>
Diffstat (limited to 'xlators/features/marker/src/marker.c')
-rw-r--r-- | xlators/features/marker/src/marker.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xlators/features/marker/src/marker.c b/xlators/features/marker/src/marker.c index 9e5fe363a..d2a6c4e14 100644 --- a/xlators/features/marker/src/marker.c +++ b/xlators/features/marker/src/marker.c @@ -253,7 +253,7 @@ call_from_special_client (call_frame_t *frame, xlator_t *this, const char *name) priv = (marker_conf_t *)this->private; - if (frame->root->pid != -1 || name == NULL || + if (frame->root->pid != GF_CLIENT_PID_GSYNCD || name == NULL || strcmp (name, MARKER_XATTR_PREFIX "." VOLUME_MARK) != 0) { ret = _gf_false; goto out; @@ -434,7 +434,7 @@ marker_xtime_update_marks (xlator_t *this, marker_local_t *local) GF_VALIDATE_OR_GOTO ("marker", this, out); GF_VALIDATE_OR_GOTO (this->name, local, out); - if (local->pid == -1) + if (local->pid == GF_CLIENT_PID_GSYNCD) goto out; marker_gettimeofday (local); @@ -1769,7 +1769,7 @@ call_from_sp_client_to_reset_tmfile (call_frame_t *frame, if (data == NULL) return -1; - if (frame->root->pid != -1) { + if (frame->root->pid != GF_CLIENT_PID_GSYNCD) { op_ret = -1; op_errno = EPERM; |