~ne02ptzero/libfloat

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
2 2

[PATCH] Reset status node when node become leader

Michael Bonfils <mbonfils@scaleway.com>
Details
Message ID
<20220307144651.3812887-1-mbonfils@scaleway.com>
DKIM signature
pass
Download raw message
Patch: +4 -0
---
 raft.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/raft.c b/raft.c
index 8bd9322..283d2c6 100644
--- a/raft.c
+++ b/raft.c
@@ -19,7 +19,11 @@ void libfloat_become_leader(libfloat_ctx_t *ctx)
    for_every_node(ctx, node, {
        /* Let's notify all the nodes */
        if (node != ctx->me)
        {
            libfloat_send_append_entries(ctx, node, true);
            node->replicated_log = 0;
            node->next_log_to_send = 1;
        }
    });

    ctx->me->is_up_to_date = 1;
-- 
2.25.1
Details
Message ID
<20220307145420.dvqllrm2vfcc73hp@darlene>
In-Reply-To
<20220307144651.3812887-1-mbonfils@scaleway.com> (view parent)
DKIM signature
missing
Download raw message
LGTM

-- 
Louis Solofrizzo
Team Storage

> There is no sin but ignorance.
>  -- Christopher Marlowe
Details
Message ID
<20220307145510.4wk5yr66rdg5slpl@scaleway>
In-Reply-To
<20220307144651.3812887-1-mbonfils@scaleway.com> (view parent)
DKIM signature
pass
Download raw message
LG
Reply to thread Export thread (mbox)