summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
Diffstat (limited to 'xlators')
-rw-r--r--xlators/cluster/afr/src/afr-self-heal-data.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/xlators/cluster/afr/src/afr-self-heal-data.c b/xlators/cluster/afr/src/afr-self-heal-data.c
index 72f6b2ad945..8b6e846ae01 100644
--- a/xlators/cluster/afr/src/afr-self-heal-data.c
+++ b/xlators/cluster/afr/src/afr-self-heal-data.c
@@ -303,6 +303,9 @@ afr_selfheal_data_fsync (call_frame_t *frame, xlator_t *this, fd_t *fd,
local = frame->local;
priv = this->private;
+ if (!priv->ensure_durability)
+ return 0;
+
AFR_ONLIST (healed_sinks, frame, attr_cbk, fsync, fd, 0, NULL);
for (i = 0; i < priv->child_count; i++)