~ne02ptzero/libfloat

log: Fix spamming heartbeats with entries when idle v1 APPLIED

Louis Solofrizzo: 1
 log: Fix spamming heartbeats with entries when idle

 1 files changed, 1 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~ne02ptzero/libfloat/patches/24032/mbox | git am -3
Learn more about email & git

[PATCH] log: Fix spamming heartbeats with entries when idle Export this patch

Signed-off-by: Louis Solofrizzo <lsolofrizzo@scaleway.com>
---
 log.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/log.c b/log.c
index 341b11c..7676da1 100644
--- a/log.c
+++ b/log.c
@@ -577,7 +577,7 @@ void libfloat_append_entries_response(libfloat_ctx_t *ctx, libfloat_rpc_append_e

    /* Set the next index to sent to the node */
    node->last_update = ctx->time(NULL);
    if (node->next_log_to_send < resp->current_index)
    if (node->next_log_to_send <= resp->current_index)
    {
        node->next_log_to_send = resp->current_index + 1;
        node->replicated_log = resp->current_index;
-- 
2.32.0