Skip to content

Commit f7c6b09

Browse files
committed
2 parents ef97004 + 999f52e commit f7c6b09

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

contrib/raftable/worker.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -497,9 +497,12 @@ void raftable_worker_main(Datum arg)
497497
if (tick(cfg->raft_config.heartbeat_ms))
498498
{
499499
m = raft_recv_message(raft);
500-
Assert(m != NULL);
501-
raft_handle_message(raft, m);
502-
notify();
500+
if (m) {
501+
raft_handle_message(raft, m);
502+
notify();
503+
} else {
504+
elog(WARNING, "got an empty or corrupt message on raftable port");
505+
}
503506
}
504507
CHECK_FOR_INTERRUPTS();
505508
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy