[Tarantool-patches] [PATCH 4/8] replication: make sync transactions wait quorum

Vladislav Shpilevoy v.shpilevoy at tarantool.org
Fri Jun 26 00:48:06 MSK 2020


I added a commit on top of this one:

====================
Author: Vladislav Shpilevoy <v.shpilevoy at tarantool.org>
Date:   Thu Jun 25 23:43:08 2020 +0200

    [tosquash] replication: txn_limbo_check_complete() should consider rollback too
    
    txn_limbo_check_complete() didn't consider rollback as a completion.
    Obviously it should. Even though fully functional rollback appears
    in later commits.

diff --git a/src/box/txn_limbo.c b/src/box/txn_limbo.c
index bab843c0a..9de91db93 100644
--- a/src/box/txn_limbo.c
+++ b/src/box/txn_limbo.c
@@ -104,6 +104,8 @@ txn_limbo_assign_lsn(struct txn_limbo *limbo, struct txn_limbo_entry *entry,
 static bool
 txn_limbo_check_complete(struct txn_limbo *limbo, struct txn_limbo_entry *entry)
 {
+	if (txn_limbo_entry_is_complete(entry))
+		return true;
 	struct vclock_iterator iter;
 	vclock_iterator_init(&iter, &limbo->vclock);
 	int ack_count = 0;


More information about the Tarantool-patches mailing list