From b8c42e5cef817bdd0270b1991c0a365aa321f7cc Mon Sep 17 00:00:00 2001 From: Anand Avati Date: Wed, 29 Sep 2010 06:53:03 +0000 Subject: 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 Signed-off-by: Vijay Bellur 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 --- xlators/cluster/afr/src/afr-common.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'xlators/cluster/afr/src/afr-common.c') diff --git a/xlators/cluster/afr/src/afr-common.c b/xlators/cluster/afr/src/afr-common.c index b5f060a87..013415260 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); -- cgit