From e6aaeda4c3a44f1c459adbd619ee7c6d0151b254 Mon Sep 17 00:00:00 2001 From: Ravishankar N Date: Fri, 18 Aug 2017 18:05:54 +0530 Subject: afr: check validity of afr_reply ...in various self-heal code paths. Originally found by Pranith in __afr_selfheal_name_impunge () Also change __afr_selfheal_assign_gfid() to send lookup only on those bricks that don't have a gfid matching that of the source. > Reviewed-on: https://review.gluster.org/18065 > Smoke: Gluster Build System > CentOS-regression: Gluster Build System (cherry picked from commit d594900dbca92c356152be65fce16f77c402117c) Change-Id: I70a2ccd750a2af92c5fc36e0eefb2b6125404b4a BUG: 1487319 Signed-off-by: Pranith Kumar K Signed-off-by: Ravishankar N Reviewed-on: https://review.gluster.org/18173 Smoke: Gluster Build System CentOS-regression: Gluster Build System --- xlators/cluster/afr/src/afr.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'xlators/cluster/afr/src/afr.h') diff --git a/xlators/cluster/afr/src/afr.h b/xlators/cluster/afr/src/afr.h index cf736ed3d2e..c4ceb66914f 100644 --- a/xlators/cluster/afr/src/afr.h +++ b/xlators/cluster/afr/src/afr.h @@ -1158,6 +1158,9 @@ afr_handle_open_fd_count (call_frame_t *frame, xlator_t *this); void afr_remove_eager_lock_stub (afr_local_t *local); +void +afr_reply_wipe (struct afr_reply *reply); + void afr_replies_wipe (struct afr_reply *replies, int count); -- cgit