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

Fix unlock_algorithm in lock service.


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1558 fd59a12c-fef9-0310-b244-a6a79926bd2f
Steven Dake 17 лет назад
Родитель
Сommit
94391fd19b
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      exec/lck.c

+ 1 - 0
exec/lck.c

@@ -1130,6 +1130,7 @@ void unlock_algorithm (
 			 */
 			 */
 			list_p = resource->pr_pending_list_head.next;
 			list_p = resource->pr_pending_list_head.next;
 			list_del (&resource->pr_pending_list_head);
 			list_del (&resource->pr_pending_list_head);
+			list_init (&resource->pr_pending_list_head);
 			list_add_tail (list_p,
 			list_add_tail (list_p,
 				&resource->pr_granted_list_head);
 				&resource->pr_granted_list_head);
 		}
 		}