Port Volkers deadlock avoidance patch to HEAD.
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Tue, 13 Oct 2009 21:17:49 +0000 (08:17 +1100)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Tue, 13 Oct 2009 21:17:49 +0000 (08:17 +1100)
commit70e7781df1f118a0e2632a9c634f3fd388fa6c8c
tree9c4399d853e5ed334f20d522d5c833425e551d27
parent346fa055f4106497b87df97da5ebd6e51fa1ef8c
Port Volkers deadlock avoidance patch to HEAD.
This patch ensures that we lock all non-notify related databases first and
then the notify databases to avoiud a deadlock where samba needs to lock records on two databases at once (and notify being the second database).

Newer versions of samba would instead use the set-db-prio control to set this explicitely on a database per database basis instead of relying on  hardcoded database names. This patch will be reverted in the future when all updated versions of samba has been pushed out.
server/ctdb_freeze.c
server/ctdb_recover.c