summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/afr/src/afr-inode-write.c
diff options
context:
space:
mode:
authorPranith Kumar K <pranithk@gluster.com>2011-08-22 11:59:11 +0530
committerVijay Bellur <vijay@gluster.com>2011-08-22 02:30:15 -0700
commitb249ff7505392ae5cac1421a6a44310800d26feb (patch)
tree282061197825dce9b0312a1fce0947c32a95319a /xlators/cluster/afr/src/afr-inode-write.c
parentb6e3e9c480be4226925b51c5e9ee0c368aa94a6d (diff)
cluster/afr: Paused fop should not continue with fop
Change-Id: Idce22a6266c354e327d5d717715d2e62533eec58 BUG: 3448 Reviewed-on: http://review.gluster.com/292 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vijay@gluster.com>
Diffstat (limited to 'xlators/cluster/afr/src/afr-inode-write.c')
-rw-r--r--xlators/cluster/afr/src/afr-inode-write.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/xlators/cluster/afr/src/afr-inode-write.c b/xlators/cluster/afr/src/afr-inode-write.c
index 5d10944b1fd..b40af1b069f 100644
--- a/xlators/cluster/afr/src/afr-inode-write.c
+++ b/xlators/cluster/afr/src/afr-inode-write.c
@@ -355,7 +355,6 @@ afr_open_fd_fix (call_frame_t *frame, xlator_t *this, gf_boolean_t pause_fop)
afr_local_t *local = NULL;
afr_private_t *priv = NULL;
gf_boolean_t fop_continue = _gf_true;
- gf_boolean_t queue_fop = _gf_false;
local = frame->local;
priv = this->private;
@@ -384,6 +383,7 @@ afr_open_fd_fix (call_frame_t *frame, xlator_t *this, gf_boolean_t pause_fop)
fd_ctx->up_count = priv->up_count;
fd_ctx->down_count = priv->down_count;
}
+
for (i = 0; i < priv->child_count; i++) {
if ((fd_ctx->opened_on[i] == AFR_FD_NOT_OPENED) &&
local->child_up[i]) {
@@ -396,11 +396,11 @@ afr_open_fd_fix (call_frame_t *frame, xlator_t *this, gf_boolean_t pause_fop)
need_open_count++;
} else if (pause_fop && local->child_up[i] &&
(fd_ctx->opened_on[i] == AFR_FD_OPENING)) {
- queue_fop = _gf_true;
+ local->fop_paused = _gf_true;
}
}
- if (queue_fop) {
+ if (local->fop_paused) {
GF_ASSERT (pause_fop);
gf_log (this->name, GF_LOG_INFO, "Pause fd %p",
local->fd);