summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/afr/src/afr.h
diff options
context:
space:
mode:
authorRichard Wareing <rwareing@fb.com>2015-12-10 22:27:27 -0800
committerJeff Darcy <jeff@pl.atyp.us>2017-08-01 11:48:43 +0000
commit72d9e7144855b56e23c7a1f160eb5bb956287eaa (patch)
treeeec3ddd56d78a1e5662e760e518d5f3e51c18963 /xlators/cluster/afr/src/afr.h
parenteac58993014a23276adf036da91f14efbfe6c84f (diff)
cluster/afr: Fix case in PGFID healing where NOOP was not being honored
Summary: - PGFID healing should not be triggered in the case where there is nothing to do (ret = 2). Instead this return code should be returned to the heal daemon to trigger the reap of the entry. - Reworked shd-pgfid-heal.t to queue up heal naturally instead of synthetically Test Plan: - Run tests/basic/afr/shd-pgfid-heal.t Differential Revision: https://phabricator.fb.com/D2748578 Change-Id: I74300de2b4dce23867f4111548de35f58bf77453 Signed-off-by: Jeff Darcy <jdarcy@fb.com> Reviewed-on: https://review.gluster.org/17936 Smoke: Gluster Build System <jenkins@build.gluster.org> Tested-by: Jeff Darcy <jeff@pl.atyp.us> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Jeff Darcy <jeff@pl.atyp.us>
Diffstat (limited to 'xlators/cluster/afr/src/afr.h')
-rw-r--r--xlators/cluster/afr/src/afr.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/xlators/cluster/afr/src/afr.h b/xlators/cluster/afr/src/afr.h
index abd2f470131..1d6a0dc5157 100644
--- a/xlators/cluster/afr/src/afr.h
+++ b/xlators/cluster/afr/src/afr.h
@@ -98,6 +98,7 @@ typedef struct _afr_private {
unsigned char *child_up;
int64_t *child_latency;
+ gf_boolean_t pgfid_self_heal;
unsigned char *local;
char **pending_key;