From b4cbfdac0d35e6896f337b4ae7b75dcf4e714a1a Mon Sep 17 00:00:00 2001 From: Avra Sengupta Date: Fri, 12 Feb 2016 14:57:47 +0530 Subject: nsr: Introducing a happy path test case Write infra for nsr_server to not send a CHILD_UP before it gets a CHILD_UP from a quorum of it's children. Using the CHILD_UP received in the nsr client translator from the server, to decide the right time for starting the I/Os Change-Id: I9551638b306bdcbc6bae6aeda00316576ea832fe Signed-off-by: Avra Sengupta Reviewed-on: http://review.gluster.org/13623 CentOS-regression: Gluster Build System Smoke: Gluster Build System NetBSD-regression: NetBSD Build System Reviewed-by: Jeff Darcy --- xlators/experimental/nsr-server/src/nsr-internal.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'xlators/experimental/nsr-server/src/nsr-internal.h') diff --git a/xlators/experimental/nsr-server/src/nsr-internal.h b/xlators/experimental/nsr-server/src/nsr-internal.h index b8c7fc314b7..d43fbac9a53 100644 --- a/xlators/experimental/nsr-server/src/nsr-internal.h +++ b/xlators/experimental/nsr-server/src/nsr-internal.h @@ -74,6 +74,8 @@ typedef struct { * TBD: re-evaluate how to manage this */ char term_buf[CHANGELOG_ENTRY_SIZE]; + gf_boolean_t child_up; /* To maintain the state of * + * the translator */ } nsr_private_t; typedef struct { -- cgit