Просмотр исходного кода

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
Jim Meyering 17 лет назад
Родитель
Сommit
2a709e8c64
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      lib/confdb.c

+ 2 - 0
lib/confdb.c

@@ -340,9 +340,11 @@ cs_error_t confdb_dispatch (
 		}
 		}
 
 
 		if (dispatch_avail == 0 && dispatch_types == CONFDB_DISPATCH_ALL) {
 		if (dispatch_avail == 0 && dispatch_types == CONFDB_DISPATCH_ALL) {
+			pthread_mutex_unlock (&confdb_inst->dispatch_mutex);
 			break; /* exit do while cont is 1 loop */
 			break; /* exit do while cont is 1 loop */
 		} else
 		} else
 		if (dispatch_avail == 0) {
 		if (dispatch_avail == 0) {
+			pthread_mutex_unlock (&confdb_inst->dispatch_mutex);
 			continue; /* next poll */
 			continue; /* next poll */
 		}
 		}