From f1430a682cdeb315c5a2e910670e30efc31f0ea6 Mon Sep 17 00:00:00 2001
From: Vladislav Shpilevoy <v.shpilevoy@tarantool.org>
Date: Wed, 30 Mar 2022 00:54:45 +0200
Subject: [PATCH] limbo: fix typo in txn_limbo_read_promote()

It used the global txn_limbo in one place instead of the limbo
passed as an argument.

NO_DOC=Refactoring
NO_TEST=Refactoring
NO_CHANGELOG=Refactoring
---
 src/box/txn_limbo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/box/txn_limbo.c b/src/box/txn_limbo.c
index 921d538d42..5728758d34 100644
--- a/src/box/txn_limbo.c
+++ b/src/box/txn_limbo.c
@@ -528,7 +528,7 @@ txn_limbo_read_promote(struct txn_limbo *limbo, uint32_t replica_id,
 {
 	txn_limbo_read_confirm(limbo, lsn);
 	txn_limbo_read_rollback(limbo, lsn + 1);
-	assert(txn_limbo_is_empty(&txn_limbo));
+	assert(txn_limbo_is_empty(limbo));
 	limbo->owner_id = replica_id;
 	box_update_ro_summary();
 	limbo->confirmed_lsn = 0;
-- 
GitLab