mirror of
https://git.proxmox.com/git/mirror_corosync
synced 2025-07-20 05:28:11 +00:00
notifyd: dispatch only one message at a time.
This is avoid getting stuck in the dispatch processing messages when the user is trying to shutdown the service. Signed-off-by: Angus Salkeld <asalkeld@redhat.com> Reviewed-by: Steven Dake <sdake@redhat.com>
This commit is contained in:
parent
0ad2494ae7
commit
7004457014
@ -365,7 +365,7 @@ static int
|
||||
_cs_confdb_dispatch(hdb_handle_t handle,
|
||||
int fd, int revents, void *data)
|
||||
{
|
||||
confdb_dispatch(confdb_handle, CONFDB_DISPATCH_ALL);
|
||||
confdb_dispatch(confdb_handle, CS_DISPATCH_ONE);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -384,7 +384,7 @@ static int
|
||||
_cs_quorum_dispatch(hdb_handle_t handle,
|
||||
int fd, int revents, void *data)
|
||||
{
|
||||
quorum_dispatch(quorum_handle, CS_DISPATCH_ALL);
|
||||
quorum_dispatch(quorum_handle, CS_DISPATCH_ONE);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user