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

defect 637
Fix saClmFinalize will block with threads

(Logical change 1.218)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@692 fd59a12c-fef9-0310-b244-a6a79926bd2f

Steven Dake 20 лет назад
Родитель
Сommit
703710282c
1 измененных файлов с 0 добавлено и 3 удалено
  1. 0 3
      lib/clm.c

+ 0 - 3
lib/clm.c

@@ -362,14 +362,12 @@ saClmFinalize (
 		return (error);
 	}
 
-       pthread_mutex_lock (&clmInstance->dispatch_mutex);
        pthread_mutex_lock (&clmInstance->response_mutex);
 
 	/*
 	 * Another thread has already started finalizing
 	 */
 	if (clmInstance->finalize) {
-		pthread_mutex_unlock (&clmInstance->dispatch_mutex);
 		pthread_mutex_unlock (&clmInstance->response_mutex);
 		saHandleInstancePut (&clmHandleDatabase, clmHandle);
 		return (SA_ERR_BAD_HANDLE);
@@ -377,7 +375,6 @@ saClmFinalize (
 
 	clmInstance->finalize = 1;
 
-	pthread_mutex_unlock (&clmInstance->dispatch_mutex);
 	pthread_mutex_unlock (&clmInstance->response_mutex);
 
 	saHandleDestroy (&clmHandleDatabase, clmHandle);