Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit96d2a24

Browse files
committed
raftable restart timeout
1 parentb07cf6f commit96d2a24

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+
#defineRAFTABLE_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)

[8]ページ先頭

©2009-2025 Movatter.jp