From: Pete Zaitcev Subject: [tabled patch 4/5] Support "auto" replicaton port Date: Thu, 12 Aug 2010 13:22:32 -0600 Message-ID: <20100812132232.41cdd7b3@lembas.zaitcev.lan> References: <20100812125517.4edd31db@lembas.zaitcev.lan> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20100812125517.4edd31db@lembas.zaitcev.lan> Sender: hail-devel-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" To: Jeff Garzik Cc: Project Hail List Allow random ports for replication master to listen on. The patch is somewhat larger than expected, because before we had the MASTER file written right after locking. Now we may have it written without listening parameters, and the slaves must be ready to deal with it. Unlike the auto client port, we do not need to write any "accessor" files, because we already report the host and port through CLD. Listening on random ports has security implications. Signed-off-by: Pete Zaitcev --- doc/etc.tabled.conf | 16 ++- server/cldu.c | 166 ++++++++++++++++++++++++++-------------- server/config.c | 22 +++-- server/metarep.c | 34 ++++++++ server/tabled.h | 1 test/tabled-test.conf | 2 6 files changed, 173 insertions(+), 68 deletions(-) commit 7ca8a587348e315ab7c6c9e32476d8fa387718d5 Author: Pete Zaitcev Date: Thu Aug 12 12:37:27 2010 -0600 TDBRepPort "auto". diff --git a/doc/etc.tabled.conf b/doc/etc.tabled.conf index c3b1d1d..5112e8a 100644 --- a/doc/etc.tabled.conf +++ b/doc/etc.tabled.conf @@ -12,14 +12,22 @@ ultracart2 + /path/tabled-uc2/ - + + 8083 +