summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/afr/src/afr-common.c
diff options
context:
space:
mode:
authorAnand Avati <avati@gluster.com>2010-09-29 06:53:03 +0000
committerVijay Bellur <vijay@dev.gluster.com>2010-09-29 06:34:35 -0700
commitb8c42e5cef817bdd0270b1991c0a365aa321f7cc (patch)
tree629473e5e85a810f8518bee099472a655589ae06 /xlators/cluster/afr/src/afr-common.c
parent87697e7ed88ca650fe70e26d59b67254ed2393f9 (diff)
replicate: keep read_child in inode ctx as up-to-date as possible
In every transaction check if the currently set read child in the inode context failed in the fop and set it to another subvol on which the latest fop has passed. This will prevent read fops landing on subvols which have witnessed a failure. Signed-off-by: Anand V. Avati <avati@amp.gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1172 (ls -lh on NFS mount of 2-mirror replicate gives incorrect file size) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1172
Diffstat (limited to 'xlators/cluster/afr/src/afr-common.c')
-rw-r--r--xlators/cluster/afr/src/afr-common.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/xlators/cluster/afr/src/afr-common.c b/xlators/cluster/afr/src/afr-common.c
index b5f060a8730..01341526097 100644
--- a/xlators/cluster/afr/src/afr-common.c
+++ b/xlators/cluster/afr/src/afr-common.c
@@ -1433,9 +1433,6 @@ afr_cleanup_fd_ctx (xlator_t *this, fd_t *fd)
fd_ctx = (afr_fd_ctx_t *)(long) ctx;
- gf_log (this->name, GF_LOG_TRACE,
- "hits=%d, miss=%d", fd_ctx->hit, fd_ctx->miss);
-
if (fd_ctx) {
if (fd_ctx->pre_op_done)
GF_FREE (fd_ctx->pre_op_done);