From 6c95d17dabf979c51905956409560b6bbdae0eb7 Mon Sep 17 00:00:00 2001 From: Krutika Dhananjay Date: Thu, 26 Nov 2015 13:59:30 +0530 Subject: 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 Reviewed-on: http://review.gluster.org/12759 Tested-by: NetBSD Build System Tested-by: Gluster Build System Reviewed-by: Pranith Kumar Karampuri --- xlators/features/shard/src/shard.c | 1 + 1 file changed, 1 insertion(+) 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; -- cgit