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

Commit 6c492b4

Browse files
committed
Fix raftable worker initialization
1 parent 939e0ad commit 6c492b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/raftable/worker.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ static void worker_main(Datum arg)
496496

497497
void worker_register(WorkerConfig *cfg)
498498
{
499-
BackgroundWorker worker;
499+
BackgroundWorker worker = {{0}};
500500
strcpy(worker.bgw_name, "raftable worker");
501501
worker.bgw_flags = BGWORKER_SHMEM_ACCESS;
502502
worker.bgw_start_time = BgWorkerStart_ConsistentState;

0 commit comments

Comments
 (0)