~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] log: Don't compute next_log on network replays

Louis Solofrizzo <lsolofrizzo@scaleway.com>
Details
Message ID
<20220202121100.686750-1-lsolofrizzo@scaleway.com>
DKIM signature
missing
Download raw message
Patch: +2 -0
Signed-off-by: Louis Solofrizzo <lsolofrizzo@scaleway.com>
---
 log.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/log.c b/log.c
index 58610a0..03c043c 100644
--- a/log.c
+++ b/log.c
@@ -664,8 +664,10 @@ void libfloat_append_entries_response(libfloat_ctx_t *ctx, libfloat_rpc_append_e
                node->next_log_to_send = 1;
                return;
            }

            ERROR(ctx, "libfloat_append_entries_response: node %d: received current_index (%u) older than replicated_log (%u)",
                node->id, resp->current_index, node->replicated_log);
            return;
        }

        node->next_log_to_send = max(resp->current_index + 1, 1);
-- 
2.35.0
Details
Message ID
<30e3b04f-3a89-43c8-ab8b-d55233e9bce0@ptrk.io>
In-Reply-To
<20220202121100.686750-1-lsolofrizzo@scaleway.com> (view parent)
DKIM signature
missing
Download raw message
LG
Details
Message ID
<J3WxTSA67Hd1w276S25SbhCXOhFrMS4sFFC8Fm2KOAyolWZA66XWIseUVCK_v2bQgAlN0igAWX_yDWTlPO0kv5qqMDOX189MMHIvWNwevnE=@protonmail.com>
In-Reply-To
<20220202121100.686750-1-lsolofrizzo@scaleway.com> (view parent)
DKIM signature
missing
Download raw message
LG

--
Michael Bonfils
htps://www.murlock.org/

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐

On Wednesday, February 2nd, 2022 at 1:11 PM, Louis Solofrizzo <lsolofrizzo@scaleway.com> wrote:

> Signed-off-by: Louis Solofrizzo lsolofrizzo@scaleway.com
>
> log.c | 2 ++
>
> 1 file changed, 2 insertions(+)
>
> diff --git a/log.c b/log.c
>
> index 58610a0..03c043c 100644
>
> --- a/log.c
>
> +++ b/log.c
>
> @@ -664,8 +664,10 @@ void libfloat_append_entries_response(libfloat_ctx_t *ctx, libfloat_rpc_append_e
>
> node->next_log_to_send = 1;
>
>                  return;
>              }
>
>
> -              ERROR(ctx, "libfloat_append_entries_response: node %d: received current_index (%u) older than replicated_log (%u)",
>                    node->id, resp->current_index, node->replicated_log);
>
>
> -              return;
>            }
>
>
>
> node->next_log_to_send = max(resp->current_index + 1, 1);
>
> --
>
> 2.35.0
Reply to thread Export thread (mbox)