s3:dbwrap_ctdb: start rewrite of transactions using the global lock (g_lock)
commitc2354aa193617ffc3e4036fe0b9034c2664901fd
authorMichael Adam <obnox@samba.org>
Thu, 3 Dec 2009 16:29:54 +0000 (3 17:29 +0100)
committerKarolin Seeger <kseeger@samba.org>
Wed, 31 Mar 2010 15:54:29 +0000 (31 17:54 +0200)
tree68aed960078ce707a565befe08d7d7d698ec1e0e
parent3f64cba12aea87ad57bd52547f7dc312cd9e8636
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
(cherry picked from commit 16bc6ba2268e3660d026076264de8666356e00bf)
source3/lib/dbwrap_ctdb.c