1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
samba-mirror/ctdb
Ronnie Sahlberg b8eb5925cf Try to use tdb transactions when updating a record and record header inside the ctdb daemon.
If a transaction could be started, do safe transaction store when updating the record inside the daemon.
If the transaction could not be started (maybe another samba process has a lock on the database?) then just do a normal store instead (instead of blocking the ctdb daemon).

The client can "signal" ctdb that updates to this database should, if possible, be done using safe transactions by specifying the TDB_NOSYNC flag when attaching to the database.
The TDB flags are passed to ctdb in the "srvid" field of the control header when attaching using the CTDB_CONTROL_DB_ATTACH_PERSISTENT.

Currently, samba3.2 does not yet tell ctdbd to handle any persistent databases using safe transactions.

If samba3.2 wants a particular persistent database to be handled using
safe transactions inside the ctdbd daemon, it should pass
TDB_NOSYNC as the flags to the call to attach to a persistent database
in ctdbd_db_attach()     it currently specifies 0 as the srvid

(This used to be ctdb commit 8d6ecf47318188448d934ab76e40da7e4cece67d)
2008-05-12 13:37:31 +10:00
..
client Expand the client async framework so that it can take a callback function. 2008-05-06 15:42:59 +10:00
common Try to use tdb transactions when updating a record and record header inside the ctdb daemon. 2008-05-12 13:37:31 +10:00
config when pulling the nfs directories to check during 60.nfs monitor 2008-05-11 14:30:43 +10:00
doc make 'ctdb ip' provide machinereadble output using '-Y' 2008-03-04 13:18:27 +11:00
ib merge from ronnie 2008-02-04 20:07:15 +11:00
include Try to use tdb transactions when updating a record and record header inside the ctdb daemon. 2008-05-12 13:37:31 +10:00
lib carefully step around the recovery area when doing a tdb_wipe_all. This prevents 2008-02-08 14:10:54 +11:00
packaging/RPM Update to new release 2008-05-12 07:24:02 +10:00
server Try to use tdb transactions when updating a record and record header inside the ctdb daemon. 2008-05-12 13:37:31 +10:00
tcp listen_fd is auto-closed 2008-05-08 17:14:00 +10:00
tests merge from ronnie 2008-02-04 20:07:15 +11:00
tools fix merge corruption 2008-05-08 19:52:27 +10:00
utils use NF_DROP instead of NF_STOLEN when we tell the kernel to not worry 2007-10-17 15:03:58 +10:00
web update the iscis support under RHEL5 to allow one iscsi target to be defined for each public address in the cluster. 2008-03-31 11:00:08 +11:00
.bzrignore more code rearrangement 2007-06-07 22:16:48 +10:00
.gitignore ignore some autogenerated test files 2008-01-29 14:00:16 +11:00
aclocal.m4 initial version 2006-11-18 10:41:20 +11:00
autogen.sh use the new lib/events autoconf code 2007-05-05 17:18:06 +10:00
config.guess more merges for GPLv3 update 2007-07-10 15:46:05 +10:00
config.mk minor back-merge from samba4 2007-07-10 18:13:47 +10:00
config.sub more merges for GPLv3 update 2007-07-10 15:46:05 +10:00
configure.ac only link to -lipq if needed 2007-10-15 14:44:06 +10:00
configure.rpm fixed permissions on configure.rpm 2008-04-22 16:48:25 +02:00
install-sh initial version 2006-11-18 10:41:20 +11:00
Makefile.in From Mathieu PARENT <math.parent@gmail.com> 2008-02-13 08:17:53 +11:00