From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtpng1.m.smailru.net (smtpng1.m.smailru.net [94.100.181.251]) (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 682E745C304 for ; Tue, 1 Dec 2020 00:22:19 +0300 (MSK) References: <20201130093551.62113-1-sergepetrenko@tarantool.org> From: Vladislav Shpilevoy Message-ID: <02a31724-3374-287e-b4b8-6ddd7134320b@tarantool.org> Date: Mon, 30 Nov 2020 22:22:17 +0100 MIME-Version: 1.0 In-Reply-To: <20201130093551.62113-1-sergepetrenko@tarantool.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Tarantool-patches] [PATCH v2] box: make instace ro while limbo is not empty List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Serge Petrenko , gorcunov@gmail.com, "Alexander V. Tikhonov" Cc: tarantool-patches@dev.tarantool.org Hi! Thanks for the patch! On 30.11.2020 10:35, Serge Petrenko via Tarantool-patches wrote: > Users usually use box.ctl.wait_rw() to determine the moment when the > instance becomes writeable. > Since the synchronous replication introduction, this function became > pointless, because even when an instance is writeable, it may fail at > writing something because its limbo is not empty. > To fix the problem introduce a new helper, txn_limbo_is_ro() and start > using it in box_update_ro_summary(). > Call bax_update_ro_summary() every time the limbo gets emptied out or bax -> box. > changes an owner. > > Closes #5440 Sasha (Tikh.), please, validate the branch is good to push.