summaryrefslogtreecommitdiffstats
path: root/xlators/cluster
diff options
context:
space:
mode:
authorXiubo Li <xiubli@redhat.com>2019-01-04 15:22:24 +0800
committerPranith Kumar Karampuri <pkarampu@redhat.com>2019-01-14 03:20:11 +0000
commit8216ed2171789c8b6c6dc1e44cc171c89b1c063d (patch)
tree4966443ed200ccc20c931b4eb5df296e3c059672 /xlators/cluster
parent741f652769bc074fe85da1485e0e16df6e6766f1 (diff)
cluster/afr: fix zerofill transaction.start
This maybe one mistake when coding. Fixes: bz#1665332 Change-Id: Ia8f8dadf4a71579240ff9950b141ca528bd342b3 Signed-off-by: Xiubo Li <xiubli@redhat.com>
Diffstat (limited to 'xlators/cluster')
-rw-r--r--xlators/cluster/afr/src/afr-inode-write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/cluster/afr/src/afr-inode-write.c b/xlators/cluster/afr/src/afr-inode-write.c
index 184244d6cd8..7fcc9d48ada 100644
--- a/xlators/cluster/afr/src/afr-inode-write.c
+++ b/xlators/cluster/afr/src/afr-inode-write.c
@@ -2230,7 +2230,7 @@ afr_zerofill(call_frame_t *frame, xlator_t *this, fd_t *fd, off_t offset,
local->transaction.main_frame = frame;
- local->transaction.start = local->cont.discard.offset;
+ local->transaction.start = local->cont.zerofill.offset;
local->transaction.len = len;
afr_fix_open(fd, this);