summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/ha/src/ha.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/cluster/ha/src/ha.c')
-rw-r--r--xlators/cluster/ha/src/ha.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/xlators/cluster/ha/src/ha.c b/xlators/cluster/ha/src/ha.c
index 3eccb516b65..742ec46f107 100644
--- a/xlators/cluster/ha/src/ha.c
+++ b/xlators/cluster/ha/src/ha.c
@@ -2694,7 +2694,12 @@ ha_statfs_cbk (call_frame_t *frame,
ha_local_t *local = NULL;
ha_private_t *priv = NULL;
+ GF_ASSERT (this);
+
local = frame->local;
+ priv = this->private;
+ GF_ASSERT (priv);
+
if (-1 == op_ret) {
local->active = (local->active + 1) % priv->child_count;
local->tries--;
@@ -2711,7 +2716,6 @@ ha_statfs_cbk (call_frame_t *frame,
out:
loc_wipe (&local->loc);
STACK_UNWIND (frame, op_ret, op_errno, buf);
-
return 0;
}