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 B5005469719 for ; Thu, 12 Nov 2020 22:52:13 +0300 (MSK) Received: by mail-lf1-f67.google.com with SMTP id u19so4011451lfr.7 for ; Thu, 12 Nov 2020 11:52:13 -0800 (PST) From: Cyrill Gorcunov Date: Thu, 12 Nov 2020 22:51:14 +0300 Message-Id: <20201112195121.191366-5-gorcunov@gmail.com> In-Reply-To: <20201112195121.191366-1-gorcunov@gmail.com> References: <20201112195121.191366-1-gorcunov@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH 04/11] txn: txn_commit_async -- drop redundant variable List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: tml Cc: Vladislav Shpilevoy We use it once so it is simply redundant. Signed-off-by: Cyrill Gorcunov --- src/box/txn.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/box/txn.c b/src/box/txn.c index a075c9ef0..64f01f4e0 100644 --- a/src/box/txn.c +++ b/src/box/txn.c @@ -815,9 +815,8 @@ txn_commit_async(struct txn *txn) if (req == NULL) goto rollback; - bool is_sync = txn_has_flag(txn, TXN_WAIT_SYNC); struct txn_limbo_entry *limbo_entry; - if (is_sync) { + if (txn_has_flag(txn, TXN_WAIT_SYNC)) { /* * We'll need this trigger for sync transactions later, * but allocation failure is inappropriate after the entry -- 2.26.2