From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp36.i.mail.ru (smtp36.i.mail.ru [94.100.177.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 2AB8F41C5DC for ; Mon, 29 Jun 2020 18:32:50 +0300 (MSK) From: Serge Petrenko Date: Mon, 29 Jun 2020 18:32:26 +0300 Message-Id: <3155b44f0c95a8eb46791c3288fa83ab5b9c4512.1593444131.git.sergepetrenko@tarantool.org> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH 2/4] txn_limbo: add diag_set in txn_limbo_wait_confirm List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: v.shpilevoy@tarantool.org, gorcunov@tarantool.org, sergos@tarantool.org, lvasiliev@tarantool.org Cc: tarantool-patches@dev.tarantool.org Add failure reason to txn_limbo_wait_confirm Prerequisite #5097 --- src/box/txn_limbo.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/box/txn_limbo.c b/src/box/txn_limbo.c index d3751a28b..abea26731 100644 --- a/src/box/txn_limbo.c +++ b/src/box/txn_limbo.c @@ -404,10 +404,12 @@ txn_limbo_wait_confirm(struct txn_limbo *limbo) /* Clear the triggers if the timeout has been reached. */ trigger_clear(&on_complete); trigger_clear(&on_rollback); + diag_set(ClientError, ER_SYNC_QUORUM_TIMEOUT); return -1; } if (!cwp.is_confirm) { /* The transaction has been rolled back. */ + diag_set(ClientError, ER_SYNC_ROLLBACK); return -1; } return 0; -- 2.24.3 (Apple Git-128)