diff options
author | Krutika Dhananjay <kdhananj@redhat.com> | 2015-11-23 13:06:25 +0530 |
---|---|---|
committer | Pranith Kumar Karampuri <pkarampu@redhat.com> | 2015-11-24 22:50:46 -0800 |
commit | 5c751eba5f392bbcea5b329867112513faaf8366 (patch) | |
tree | bdb899a8a53e2746155d0d3a336c8d2cdd36c11e /geo-replication | |
parent | f054680c073d571f9228fabf91fa58416ef86a5f (diff) |
features/shard: Eliminate extra update to postbuf in writev
Backport of: http://review.gluster.org/#/c/12717/
After an extending write is complete, shard translator updates postbuf
at two places:
1. shard_update_file_size_cbk(), and
2. shard_post_update_size_writev_handler().
This can lead to unexpected behavior if md-cache is part of the client
stack and caches and serves values returned by shard translator in
postbuf. This patch eliminates the update to postbuf in
shard_post_update_size_writev_handler().
Change-Id: I1b97a46931b12d5a2f5d60877e57e0caf9e9fcb6
BUG: 1285139
Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com>
Reviewed-on: http://review.gluster.org/12737
Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
Tested-by: NetBSD Build System <jenkins@build.gluster.org>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'geo-replication')
0 files changed, 0 insertions, 0 deletions