[Tarantool-patches] [PATCH 04/11] txn: txn_commit_async -- drop redundant variable
Cyrill Gorcunov
gorcunov at gmail.com
Thu Nov 12 22:51:14 MSK 2020
We use it once so it is simply redundant.
Signed-off-by: Cyrill Gorcunov <gorcunov at gmail.com>
---
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
More information about the Tarantool-patches
mailing list