s3:dbwrap_ctdb: start rewrite of transactions using the global lock (g_lock)
authorMichael Adam <obnox@samba.org>
Thu, 3 Dec 2009 16:29:54 +0000 (17:29 +0100)
committerMichael Adam <obnox@samba.org>
Thu, 17 Dec 2009 12:17:47 +0000 (13:17 +0100)
commit8ba098c97b03fb45896b80ac68f2b22e3e098356
tree17b4bf9f48463ca58bef5681b82b9849259990e7
parentc2731e36006f54a9e000b84464ba2bf08ebbe6d7
s3:dbwrap_ctdb: start rewrite of transactions using the global lock (g_lock)

This simplifies the transaction code a lot:

* transaction_start essentially consists of acquiring a global lock.

* No write operations at all are performed on the local database
  until the transaction is committed: Every store operation is just
  going into the marshall buffer.

* The commit operation calls a new simplified TRANS3_COMMIT control
  in ctdb which rolls out thae changes to all nodes including the
  node that is performing the transaction.

Michael
source3/lib/dbwrap_ctdb.c