[PATCH] Have ldbmodify and ldbadd operate in a single transaction

Andrew Bartlett abartlet at samba.org
Wed Apr 4 03:13:48 MDT 2012


The attached patches make ldbmodify and ldbadd operate in a single
transaction, and abort that transaction on failure. 

Matthieu, this also reverts your previous attempt at doing this.  It
should help your schema work, as each transaction causes a schema
reload, which can be a problem for mutually dependent schema items.

It also fixes up our tests to both pass and cause failures on failure,
by wrapping it in the right subunit. 

I've also put them in my git tree:
https://git.samba.org/abartlet/samba.git/?p=abartlet/samba.git/.git;a=shortlog;h=refs/heads/ldb-one-transaction

Andrew Bartlett
-- 
Andrew Bartlett                                http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Revert-ldb-Permit-desactivation-of-autocomit-for-eve.patch
Type: text/x-patch
Size: 9932 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20120404/ddbbd2e8/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-ldb-Detect-failures-in-ldb.base-again.patch
Type: text/x-patch
Size: 2854 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20120404/ddbbd2e8/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-ldb-tools-Place-the-whole-of-an-ldif-file-in-a-trans.patch
Type: text/x-patch
Size: 32582 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20120404/ddbbd2e8/attachment-0002.bin>


More information about the samba-technical mailing list