From: Serge Petrenko <sergepetrenko@tarantool.org> To: Cyrill Gorcunov <gorcunov@gmail.com> Cc: tarantool-patches@dev.tarantool.org, v.shpilevoy@tarantool.org Subject: Re: [Tarantool-patches] [PATCH] raft: make sure the leader stays ro till it clears the limbo Date: Wed, 25 Nov 2020 11:48:24 +0300 [thread overview] Message-ID: <44b279d6-ee20-2d89-b273-dc4edd5f7447@tarantool.org> (raw) In-Reply-To: <20201124141415.GL875895@grain> 24.11.2020 17:14, Cyrill Gorcunov пишет: > On Tue, Nov 24, 2020 at 04:18:20PM +0300, Serge Petrenko wrote: > ... >> if (raft->state != RAFT_STATE_LEADER) >> + box_update_ro_summary(); >> return 0; > Either indent is broken or curled braces are missed? Yep, thanks! Fixed on the branch. diff --git a/src/box/raft.c b/src/box/raft.c index fa2396b4f..aa84b82a6 100644 --- a/src/box/raft.c +++ b/src/box/raft.c @@ -164,9 +164,10 @@ box_raft_on_update_f(struct trigger *trigger, void *event) * only after it clears its synchro queue. It won't be able to process * requests earlier, anyway. */ - if (raft->state != RAFT_STATE_LEADER) + if (raft->state != RAFT_STATE_LEADER) { box_update_ro_summary(); return 0; + } /* * If the node became a leader, time to clear the synchro queue. But it * must be done in the worker fiber so as not to block the state -- Serge Petrenko
next prev parent reply other threads:[~2020-11-25 8:48 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-11-24 13:18 Serge Petrenko 2020-11-24 14:14 ` Cyrill Gorcunov 2020-11-25 8:48 ` Serge Petrenko [this message] 2020-11-26 21:01 ` Vladislav Shpilevoy 2020-11-27 13:00 ` Serge Petrenko 2020-11-27 22:10 ` Vladislav Shpilevoy 2020-11-30 9:40 ` Serge Petrenko
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=44b279d6-ee20-2d89-b273-dc4edd5f7447@tarantool.org \ --to=sergepetrenko@tarantool.org \ --cc=gorcunov@gmail.com \ --cc=tarantool-patches@dev.tarantool.org \ --cc=v.shpilevoy@tarantool.org \ --subject='Re: [Tarantool-patches] [PATCH] raft: make sure the leader stays ro till it clears the limbo' \ /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