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)
committerKarolin Seeger <kseeger@samba.org>
Thu, 1 Apr 2010 07:39:14 +0000 (09:39 +0200)
commitcb699f51acdf6e1f7d7583647e42a9d8a5b615d5
treeb60baf5b11d652cb5dca4d05b7966ec2ebe07b22
parent826d4a0069ad369fe2a71170839f69834b183114
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)
(cherry picked from commit c2354aa193617ffc3e4036fe0b9034c2664901fd)
source3/lib/dbwrap_ctdb.c