diff options
| author | Krutika Dhananjay <kdhananj@redhat.com> | 2015-11-26 13:59:30 +0530 | 
|---|---|---|
| committer | Pranith Kumar Karampuri <pkarampu@redhat.com> | 2015-11-30 08:26:33 -0800 | 
| commit | 21e1782d2b8adc5f668c10a52613e45b627e9bb2 (patch) | |
| tree | d76e5bb42306a890c7173e41f406abebddeb892f | |
| parent | d421c123952ed2059f816e92e57f5e07968cc778 (diff) | |
features/shard: Set ctime to 0 in fsync callback
        Backport of: http://review.gluster.org/#/c/12759/
... to indicate to md-cache that it should not be caching
file attributes.
Change-Id: I95c94779caa26fe972aaccf6c4400278e2404267
BUG: 1285762
Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com>
Reviewed-on: http://review.gluster.org/12765
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
Tested-by: NetBSD Build System <jenkins@build.gluster.org>
| -rw-r--r-- | xlators/features/shard/src/shard.c | 1 | 
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;  | 
