From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-f67.google.com (mail-lf1-f67.google.com [209.85.167.67]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 7D42B4696C7 for ; Sat, 4 Apr 2020 19:16:39 +0300 (MSK) Received: by mail-lf1-f67.google.com with SMTP id n20so8273632lfl.10 for ; Sat, 04 Apr 2020 09:16:39 -0700 (PDT) From: Cyrill Gorcunov Date: Sat, 4 Apr 2020 19:15:22 +0300 Message-Id: <20200404161524.7466-7-gorcunov@gmail.com> In-Reply-To: <20200404161524.7466-1-gorcunov@gmail.com> References: <20200404161524.7466-1-gorcunov@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH v11 6/8] applier: reduce applier_txn_rollback_cb code density List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: tml To make it a bit more readable. Signed-off-by: Cyrill Gorcunov --- src/box/applier.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/box/applier.cc b/src/box/applier.cc index 2eb1e04fc..2f9c9c797 100644 --- a/src/box/applier.cc +++ b/src/box/applier.cc @@ -695,8 +695,10 @@ applier_txn_rollback_cb(struct trigger *trigger, void *event) /* Setup shared applier diagnostic area. */ diag_set(ClientError, ER_WAL_IO); diag_move(&fiber()->diag, &replicaset.applier.diag); + /* Broadcast the rollback event across all appliers. */ trigger_run(&replicaset.applier.on_rollback, event); + /* Rollback applier vclock to the committed one. */ vclock_copy(&replicaset.applier.vclock, &replicaset.vclock); return 0; -- 2.20.1