From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp36.i.mail.ru (smtp36.i.mail.ru [94.100.177.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 5182E4696C3 for ; Wed, 25 Dec 2019 15:47:43 +0300 (MSK) From: sergepetrenko Date: Wed, 25 Dec 2019 15:46:59 +0300 Message-Id: <485927b484c51b92397af90e8ed5013e32d8debd.1577277455.git.sergepetrenko@tarantool.org> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH v2 2/5] replication: do not decode replicaset uuid when processing a subscribe List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: v.shpilevoy@tarantool.org, georgy@tarantool.org Cc: tarantool-patches@dev.tarantool.org From: Serge Petrenko After moving cluster id check to replica (7f8cbde3555084ad6c41f137aec4faba4648c705) we do not check it on master side, so no need to decode it. Prerequisite #3186 --- src/box/box.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/box/box.cc b/src/box/box.cc index 22ac8bda1..56d07e634 100644 --- a/src/box/box.cc +++ b/src/box/box.cc @@ -1533,11 +1533,11 @@ box_process_subscribe(struct ev_io *io, struct xrow_header *header) if (!is_box_configured) tnt_raise(ClientError, ER_LOADING); - struct tt_uuid replicaset_uuid = uuid_nil, replica_uuid = uuid_nil; + struct tt_uuid replica_uuid = uuid_nil; struct vclock replica_clock; uint32_t replica_version_id; vclock_create(&replica_clock); - xrow_decode_subscribe_xc(header, &replicaset_uuid, &replica_uuid, + xrow_decode_subscribe_xc(header, NULL, &replica_uuid, &replica_clock, &replica_version_id); /* Forbid connection to itself */ -- 2.20.1 (Apple Git-117)