summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
Diffstat (limited to 'xlators')
-rw-r--r--xlators/cluster/afr/src/afr-open.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xlators/cluster/afr/src/afr-open.c b/xlators/cluster/afr/src/afr-open.c
index c8603be33..dc830f7d5 100644
--- a/xlators/cluster/afr/src/afr-open.c
+++ b/xlators/cluster/afr/src/afr-open.c
@@ -440,6 +440,7 @@ out:
gf_log (this->name, GF_LOG_TRACE,
"The up/down flush is over");
+ fd_unref (local->fd);
local->up_down_flush_cbk (frame, this);
return 0;
@@ -460,7 +461,7 @@ afr_up_down_flush (call_frame_t *frame, xlator_t *this, fd_t *fd,
local->op = GF_FOP_FLUSH;
- local->fd = fd_ref (local->fd);
+ local->fd = fd_ref (fd);
local->transaction.fop = afr_up_down_flush_wind;
local->transaction.done = afr_up_down_flush_done;