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 D68E142EF60 for ; Tue, 30 Jun 2020 02:15:39 +0300 (MSK) From: Vladislav Shpilevoy Date: Tue, 30 Jun 2020 01:15:17 +0200 Message-Id: <8f90e26795e5c455ca3af0bd5ef0cd3e0eeef9c8.1593472477.git.v.shpilevoy@tarantool.org> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH v2 16/19] 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: tarantool-patches@dev.tarantool.org, sergepetrenko@tarantool.org From: Serge Petrenko 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.21.1 (Apple Git-122.3)