mirror of
https://git.proxmox.com/git/mirror_corosync
synced 2025-07-21 23:50:13 +00:00
confdb.c: add missing mutex-unlock calls after coroipcc_dispatch_recv
* lib/confdb.c (confdb_dispatch): The code in lib/cfg.c's (corosync_cfg_dispatch) is nearly identical to that in lib/confdb.c's (confdb_dispatch), but lacked two pthread_mutex_unlock calls. 2009-04-03 Jim Meyering <meyering@redhat.com> git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1993 fd59a12c-fef9-0310-b244-a6a79926bd2f
This commit is contained in:
parent
243abac616
commit
2a709e8c64
@ -340,9 +340,11 @@ cs_error_t confdb_dispatch (
|
||||
}
|
||||
|
||||
if (dispatch_avail == 0 && dispatch_types == CONFDB_DISPATCH_ALL) {
|
||||
pthread_mutex_unlock (&confdb_inst->dispatch_mutex);
|
||||
break; /* exit do while cont is 1 loop */
|
||||
} else
|
||||
if (dispatch_avail == 0) {
|
||||
pthread_mutex_unlock (&confdb_inst->dispatch_mutex);
|
||||
continue; /* next poll */
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user