summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorKrutika Dhananjay <kdhananj@redhat.com>2015-11-26 13:59:30 +0530
committerPranith Kumar Karampuri <pkarampu@redhat.com>2015-11-27 00:25:19 -0800
commit6c95d17dabf979c51905956409560b6bbdae0eb7 (patch)
treeddfb60cf2271b29c7f39c2aaa69ad1eada4ebde4 /xlators
parent6b315b87d80cf681b976d78b444c761fc3a1caa7 (diff)
features/shard: Set ctime to 0 in fsync callback
... to indicate to md-cache that it should not be caching file attributes. Change-Id: Iaef9bf7fec8008ca47d682b4b15984f26421bcd6 BUG: 1285660 Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com> Reviewed-on: http://review.gluster.org/12759 Tested-by: NetBSD Build System <jenkins@build.gluster.org> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
Diffstat (limited to 'xlators')
-rw-r--r--xlators/features/shard/src/shard.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xlators/features/shard/src/shard.c b/xlators/features/shard/src/shard.c
index ed02f6a8c60..60b49d56180 100644
--- a/xlators/features/shard/src/shard.c
+++ b/xlators/features/shard/src/shard.c
@@ -3844,6 +3844,7 @@ shard_fsync_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
struct iatt *postbuf, dict_t *xdata)
{
/* To-Do: Wind fsync on all shards of the file */
+ postbuf->ia_ctime = 0;
SHARD_STACK_UNWIND (fsync, frame, op_ret, op_errno, prebuf, postbuf,
xdata);
return 0;