summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorJunaid <junaid@redhat.com>2012-01-04 17:28:21 +0530
committerVijay Bellur <vijay@gluster.com>2012-01-24 03:34:52 -0800
commit30755e5620aa32e27c36f70e025bd79c16772805 (patch)
tree1794524632ce9a053ededfc4e6dc36f87dee8f7f /xlators
parent8150c29276d6e84a936a5b12fff1daa1fdfc9adb (diff)
features/marker: xtime should not be updated for modifications done by special client.
Change-Id: I4b34d449b3ab08e2189fe1ff088299617b640206 BUG: 769494 Signed-off-by: Junaid <junaid@redhat.com> Reviewed-on: http://review.gluster.com/2564 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Csaba Henk <csaba@redhat.com>
Diffstat (limited to 'xlators')
-rw-r--r--xlators/features/marker/src/marker.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/xlators/features/marker/src/marker.c b/xlators/features/marker/src/marker.c
index ee422bdc3f3..9e5fe363a61 100644
--- a/xlators/features/marker/src/marker.c
+++ b/xlators/features/marker/src/marker.c
@@ -431,12 +431,18 @@ marker_create_frame (xlator_t *this, marker_local_t *local)
int32_t
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)
+ goto out;
+
marker_gettimeofday (local);
marker_local_ref (local);
marker_create_frame (this, local);
-
+out:
return 0;
}