From: Serge Petrenko <sergepetrenko@tarantool.org> To: v.shpilevoy@tarantool.org, gorcunov@tarantool.org, sergos@tarantool.org, lvasiliev@tarantool.org Cc: tarantool-patches@dev.tarantool.org Subject: [Tarantool-patches] [PATCH 2/4] txn_limbo: add diag_set in txn_limbo_wait_confirm Date: Mon, 29 Jun 2020 18:32:26 +0300 [thread overview] Message-ID: <3155b44f0c95a8eb46791c3288fa83ab5b9c4512.1593444131.git.sergepetrenko@tarantool.org> (raw) In-Reply-To: <cover.1593444131.git.sergepetrenko@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)
next prev parent reply other threads:[~2020-06-29 15:32 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-06-29 15:32 [Tarantool-patches] [PATCH 0/4] make master send only confirmed data during join Serge Petrenko 2020-06-29 15:32 ` [Tarantool-patches] [PATCH 1/4] [tosquash] move wait_confirm from gc.c to txn_limbo.c Serge Petrenko 2020-06-29 15:32 ` Serge Petrenko [this message] 2020-06-29 15:32 ` [Tarantool-patches] [PATCH 3/4] replication: delay initial join until confirmation Serge Petrenko 2020-06-29 15:32 ` [Tarantool-patches] [PATCH 4/4] replication: only send confirmed data during final join Serge Petrenko 2020-06-29 21:14 ` [Tarantool-patches] [PATCH 0/4] make master send only confirmed data during join Vladislav Shpilevoy
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=3155b44f0c95a8eb46791c3288fa83ab5b9c4512.1593444131.git.sergepetrenko@tarantool.org \ --to=sergepetrenko@tarantool.org \ --cc=gorcunov@tarantool.org \ --cc=lvasiliev@tarantool.org \ --cc=sergos@tarantool.org \ --cc=tarantool-patches@dev.tarantool.org \ --cc=v.shpilevoy@tarantool.org \ --subject='Re: [Tarantool-patches] [PATCH 2/4] txn_limbo: add diag_set in txn_limbo_wait_confirm' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox