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>
Fri, 12 Feb 2010 22:12:09 +0000 (23:12 +0100)
commit16bc6ba2268e3660d026076264de8666356e00bf
treebddad7cd15074c55500f031ad4a506a4b9eed7f5
parentb13dd17840a598ae3441e48b130a2b2a2b940572
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