~sh4d1

Paris

https://ptrk.io

Building clouds

Recent activity

Re: [PATCH] node: do not delete my own node from a cluster a month ago

From Patrik Cyvoct to ~ne02ptzero/libfloat

LG

-------- Original Message --------
On 23/08/2024 15:51, Louis Solofrizzo <lsolofrizzo@scaleway.com> wrote:

>  Because it will break the ctx->me pointer in the context, and will crash
>  horribly.
>  
>  Signed-off-by: Louis Solofrizzo <lsolofrizzo@scaleway.com>
>  ---
>   log.c  | 2 +-
>   node.c | 7 +++++++
>   2 files changed, 8 insertions(+), 1 deletion(-)
>  

[PATCH v5] raft: add soft snapshot feature 1 year, 2 months ago

From Patrik Cyvoct to ~ne02ptzero/libfloat

This patch add soft snapshot feature: if no logs are received for the
soft_compact_time seconds, a snapshot will be made based on the
soft_compact_after_n value.

Signed-off-by: Patrik Cyvoct <patrik@ptrk.io>
---
 libfloat.c |  1 +
 libfloat.h | 89 ++++++++++++++++++++++++++++--------------------------
 log.c      |  1 +
 periodic.c | 21 +++++++++++--
 raft.c     |  1 +
 5 files changed, 68 insertions(+), 45 deletions(-)

diff --git a/libfloat.c b/libfloat.c
[message trimmed]

[PATCH v4] raft: add soft snapshot feature 1 year, 2 months ago

From Patrik Cyvoct to ~ne02ptzero/libfloat

This patch add soft snapshot feature: if no logs are received for the
soft_compact_time seconds, a snapshot will be made based on the
soft_compact_after_n value.

Signed-off-by: Patrik Cyvoct <patrik@ptrk.io>
---
 libfloat.c |  1 +
 libfloat.h | 88 ++++++++++++++++++++++++++++--------------------------
 periodic.c | 16 ++++++++--
 raft.c     |  1 +
 4 files changed, 61 insertions(+), 45 deletions(-)

diff --git a/libfloat.c b/libfloat.c
index c075d5c..9b3be69 100644
[message trimmed]

[PATCH v3] raft: add soft snapshot feature 1 year, 2 months ago

From Patrik Cyvoct to ~ne02ptzero/libfloat

This patch add soft snapshot feature: if no logs are received for the
soft_compact_time seconds, a snapshot will be made based on the
soft_compact_after_n value.

Signed-off-by: Patrik Cyvoct <patrik@ptrk.io>
---
 libfloat.c |  1 +
 libfloat.h | 88 ++++++++++++++++++++++++++++--------------------------
 periodic.c | 13 ++++++--
 raft.c     |  1 +
 4 files changed, 58 insertions(+), 45 deletions(-)

diff --git a/libfloat.c b/libfloat.c
index c075d5c..9b3be69 100644
[message trimmed]

[PATCH v2] raft: add soft snapshot feature 1 year, 2 months ago

From Patrik Cyvoct to ~ne02ptzero/libfloat

This patch add soft snapshot feature: if no logs are received for the
soft_compact_time seconds, a snapshot will be made based on the
soft_compact_after_n value.

Signed-off-by: Patrik Cyvoct <patrik@ptrk.io>
---
 libfloat.c |  1 +
 libfloat.h | 88 ++++++++++++++++++++++++++++--------------------------
 periodic.c | 13 ++++++--
 raft.c     |  1 +
 4 files changed, 58 insertions(+), 45 deletions(-)

diff --git a/libfloat.c b/libfloat.c
index c075d5c..9b3be69 100644
[message trimmed]

[PATCH] raft: add soft snapshot feature 1 year, 2 months ago

From Patrik Cyvoct to ~ne02ptzero/libfloat

This patch add soft snapshot feature: if no logs are received for the
soft_compact_time seconds, a snapshot will be made based on the
soft_compact_after_n value.

Signed-off-by: Patrik Cyvoct <patrik@ptrk.io>
---
 libfloat.c |  2 +-
 libfloat.h | 85 ++++++++++++++++++++++++++++--------------------------
 periodic.c | 13 +++++++--
 raft.c     |  1 +
 4 files changed, 57 insertions(+), 44 deletions(-)

diff --git a/libfloat.c b/libfloat.c
index 14d7a4a..e28037a 100644
[message trimmed]

[PATCH] raft: add a should_snapshot method 1 year, 2 months ago

From Patrik Cyvoct to ~ne02ptzero/libfloat

This patch adds the ability to register a should_snapshot callback,
that can be used in order to avoid snapshotting on certain cases
decided by the library client.

Signed-off-by: Patrik Cyvoct <patrik@ptrk.io>
---
 libfloat.h | 92 ++++++++++++++++++++++++++++++------------------------
 log.c      | 11 ++++++-
 2 files changed, 61 insertions(+), 42 deletions(-)

diff --git a/libfloat.h b/libfloat.h
index 9a529b4..06d51e2 100644
--- a/libfloat.h
+++ b/libfloat.h
[message trimmed]