dsdb: Take out the transaction and prepare_commit locks in the same order
commitb8ba0103bf45670c31384c56d6cd63bbef760a0c
authorAndrew Bartlett <abartlet@samba.org>
Wed, 3 May 2017 20:51:30 +0000 (3 22:51 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 22 May 2017 23:13:25 +0000 (23 01:13 +0200)
tree87c5d46e26cb2e534bee20c327b3c54404a30201
parentc23b191ac4d5d8486f1ad807fb55b7da25e772f4
dsdb: Take out the transaction and prepare_commit locks in the same order

We must, when starting the transaction and preparing to commit the transaction, take
out the locks in the same order across all the databases, otherwise we may deadlock.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
source4/dsdb/samdb/ldb_modules/partition.c