Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 96d2a24

Browse files
committed
raftable restart timeout
1 parent b07cf6f commit 96d2a24

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

contrib/raftable/raftable.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ pid_t raftable_start(int id)
619619
snprintf(worker.bgw_name, BGW_MAXLEN, "raftable worker %d", sharedcfg->id);
620620
worker.bgw_flags = BGWORKER_SHMEM_ACCESS;
621621
worker.bgw_start_time = BgWorkerStart_ConsistentState;
622-
worker.bgw_restart_time = BGW_NEVER_RESTART;
622+
worker.bgw_restart_time = RAFTABLE_RESTART_TIMEOUT;
623623
worker.bgw_main = raftable_worker_main;
624624
worker.bgw_main_arg = PointerGetDatum(&sharedcfg);
625625

contrib/raftable/raftable.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#ifndef __RAFTABLE_H__
22
#define __RAFTABLE_H__
33

4+
#define RAFTABLE_RESTART_TIMEOUT 1
5+
46
/*
57
* Gets value by key. Returns the value or NULL if not found. Gives up after
68
* 'timeout_ms' milliseconds

0 commit comments

Comments
 (0)