summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/afr/src/afr.h
diff options
context:
space:
mode:
authorAmar Tumballi <amar@gluster.com>2010-09-16 01:27:39 +0000
committerVijay Bellur <vijay@dev.gluster.com>2010-09-16 04:23:02 -0700
commit27d45ce245376cb012b0dd80dee6ccb26cc12645 (patch)
treeadeed765c6348224a6f73e238ecdb1054eb28259 /xlators/cluster/afr/src/afr.h
parentb956f2389144ce19386770187ad7d17350a4bd1d (diff)
cluster/pump: introduce another flag to enable pump functionality
* by default pump will act as a pass through xlator, only when replace-brick start command is issued, it will set the flag, and then pump features (ie, afr) will come in to picture. Signed-off-by: Amar Tumballi <amar@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1590 (Stack overflow during self-heal) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1590
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 7ce4b0cea65..8e0121609d9 100644
--- a/xlators/cluster/afr/src/afr.h
+++ b/xlators/cluster/afr/src/afr.h
@@ -84,6 +84,7 @@ typedef struct _afr_private {
uint64_t down_count; /* number of CHILD_DOWNs we have seen */
struct _pump_private *pump_private; /* Set if we are loaded as pump */
+ int use_afr_in_pump;
} afr_private_t;
typedef struct {