summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* pytdb: Add support for tdb_transaction_prepare_commit()Kirill Smelkov2010-10-072-0/+18
| | | | | | | | Cc: 597386@bugs.debian.org Signed-off-by: Kirill Smelkov <kirr@landau.phys.spbu.ru> Signed-off-by: Jelmer Vernooij <jelmer@samba.org> (This used to be ctdb commit fd16bcc1434841d84fdf78f80163c97c0b52b3fe)
* pytdb: Add support for tdb_enable_seqnum, tdb_get_seqnum and ↵Kirill Smelkov2010-10-072-0/+30
| | | | | | | | | | tdb_increment_seqnum_nonblock Cc: 597386@bugs.debian.org Signed-off-by: Kirill Smelkov <kirr@landau.phys.spbu.ru> Signed-off-by: Jelmer Vernooij <jelmer@samba.org> (This used to be ctdb commit 1778fd02eec6e64737167c46173c0c76c85cc4d9)
* pytdb: Update open flags to match those for tdb_open() in tdb.hKirill Smelkov2010-10-071-0/+6
| | | | | | | | | | | Namely TDB_NOSYNC, TDB_SEQNUM, TDB_VOLATILE, TDB_ALLOW_NESTING and TDB_DISALLOW_NESTING were missing. Cc: 597386@bugs.debian.org Signed-off-by: Kirill Smelkov <kirr@mns.spb.ru> Signed-off-by: Jelmer Vernooij <jelmer@samba.org> (This used to be ctdb commit d0c28ff1fedd27a99a7550fcc74e18cb1f536986)
* pytdb: Fix repr segfault for internal dbKirill Smelkov2010-10-072-1/+11
| | | | | | | | | | | | | | | | | The problem was tdb->name is NULL for TDB_INTERNAL databases, and so it was crashing ... #0 0xb76944f3 in strlen () from /lib/i686/cmov/libc.so.6 #1 0x0809862b in PyString_FromFormatV (format=0xb72b6a26 "Tdb('%s')", vargs=0xbfc26a94 "") at ../Objects/stringobject.c:211 #2 0x08098888 in PyString_FromFormat (format=0xb72b6a26 "Tdb('%s')") at ../Objects/stringobject.c:358 #3 0xb72b65f2 in tdb_object_repr (self=0xb759e060) at ./pytdb.c:439 Cc: 597089@bugs.debian.org Signed-off-by: Kirill Smelkov <kirr@mns.spb.ru> Signed-off-by: Jelmer Vernooij <jelmer@samba.org> (This used to be ctdb commit 3ff413baf04ce28eb54a80141250ae1284b2a521)
* pytdb: Add support for tdb_add_flags() & tdb_remove_flags()Kirill Smelkov2010-10-072-0/+27
| | | | | | | | | | | Note, unlike tdb_open where flags is `int', tdb_{add,remove}_flags want flags as `unsigned', so instead of "i" I used "I" in PyArg_ParseTuple. Cc: 597386@bugs.debian.org Signed-off-by: Kirill Smelkov <kirr@mns.spb.ru> Signed-off-by: Jelmer Vernooij <jelmer@samba.org> (This used to be ctdb commit 7389f8a8a634c2fe0f068831326d92e6bfa0d046)
* tdb: added TDB_NO_FSYNC env variableAndrew Tridgell2010-10-071-0/+4
| | | | | | this might help reduce test times and load on test machines (This used to be ctdb commit 5c4240c364c52073ca64fddf2aa2c1593db0093b)
* tdb: increment version to 1.2.4Rusty Russell2010-10-071-1/+1
| | | | (This used to be ctdb commit f1c06608245ec34493c330d891e04c250ad64b20)
* tdb: put example hashes into header, so we notice incorrect hash_fn.Rusty Russell2010-10-073-2/+65
| | | | | | | | | | | | This is Stefan Metzmacher <metze@samba.org>'s patch with minor changes: 1) Use the TDB_MAGIC constant so both hashes aren't of strings. 2) Check the hash in tdb_check (paranoia, really). 3) Additional check in the (unlikely!) case where both examples hash to 0. 4) Cosmetic changes to var names and complaint message. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (This used to be ctdb commit 63c582c99128c3623e270e8425966cab7744fb2f)
* tdb: fix tdb_check() on other-endian tdbs.Rusty Russell2010-10-071-1/+1
| | | | | | | | We must not endian-convert the magic string, just the rest. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (This used to be ctdb commit 525390863ad39acea08ceb88531dc59d118fcad4)
* tdb: fix tdb_check() on read-only TDBs to actually work.Rusty Russell2010-10-071-5/+17
| | | | | | | | | | | | Commit bc1c82ea137 "Fix tdb_check() to work with read-only tdb databases." claimed to do this, but tdb_lockall_read() fails on read-only databases. Also make sure we can still do tdb_check() inside a transaction (weird, but we previously allowed it so don't break the API). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (This used to be ctdb commit 2558eb250011893d09dbeaedaffeefa0e397142f)
* tdb: make check more robust against recovery failures.Rusty Russell2010-10-071-5/+36
| | | | | | | | | | | | | We can end up with dead areas when we die during transaction commit; tdb_check() fails on such a (valid) database. This is particularly noticable now we no longer truncate on recovery; if the recovery area was at the end of the file we used to remove it that way. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (This used to be ctdb commit b4162a95ff9ae28cda8d9c76c51c9480104517a7)
* add a machinereadable version of ctdb stats/statisticsRonnie Sahlberg2010-09-301-25/+55
| | | | (This used to be ctdb commit 3a033156c48d821d48fd18f12c3b0ac14bbddc93)
* Create a tunable for how often to collect rolling statistics and initialize ↵Ronnie Sahlberg2010-09-303-3/+6
| | | | | | it to 1 second (This used to be ctdb commit cb8c779bb5d9862abbe08919aa181a1a1b2bef18)
* Add rolling statistics that are collected across 10 second intervals.Ronnie Sahlberg2010-09-299-56/+213
| | | | | | Add a new command "ctdb stats [num]" that prints the [num] most recent statistics intervals collected. (This used to be ctdb commit e6e16fcd5a45ebd3739a8160c8fb5f44494edb9e)
* Add a new statistics structure to keep the current running statisticsRonnie Sahlberg2010-09-291-4/+13
| | | | (This used to be ctdb commit 09e5a2fb47c312f71f455cdbf8d9cabcca1041a4)
* Create macros to update the statistics counters and use these macrosRonnie Sahlberg2010-09-2911-121/+113
| | | | | | everywhere instead of manipulating the coutenrs directly. (This used to be ctdb commit 2e648df890e5713bc575965d87937827b068d0d7)
* Add back monitoring for time skips, forward as well as backward.Ronnie Sahlberg2010-09-281-0/+22
| | | | | | This serviceability tool was lost during the migration from the old eventsystem to the tevent system. (This used to be ctdb commit b4c00b4ac30ec215629f44f802ce9660abcd7a48)
* update/improve the log message related to rerecovery timeoutsRonnie Sahlberg2010-09-281-2/+2
| | | | (This used to be ctdb commit 8b4d1df3abcae03cf7a339d8390c816682a43019)
* set up a handler to catch and log debug messages from the tevent layerRonnie Sahlberg2010-09-284-0/+48
| | | | (This used to be ctdb commit fdb4c02f595fa207310a9a48da3fefd653fa9e4b)
* adda GETPUBLICIPS control to libctdb and use this in the test exampleRonnie Sahlberg2010-09-157-25/+250
| | | | | | enhance the test example to show the new releaseip/takeip messages (This used to be ctdb commit 21cc57883e6c02b0e037211b26d1d866d5d7f03d)
* server/banning: also release all ips if we're banning ourselfStefan Metzmacher2010-09-143-18/+31
| | | | | | metze (This used to be ctdb commit c386f2c62f06f1c60047b7d4b1ec7a9eec11873c)
* server/recoverd: if we can't get the recovery lock, ban ourselfStefan Metzmacher2010-09-141-2/+4
| | | | | | metze (This used to be ctdb commit 80b8889267339b870868841ff077e850bc5b52e2)
* server/recoverd: do takeover_run after verifying the reclock fileStefan Metzmacher2010-09-141-4/+5
| | | | | | metze (This used to be ctdb commit 93df096773c89f21f77b3bcf9aa90bf28881b852)
* server/monitor: ask for a takeoverrun after propagating our new flagsStefan Metzmacher2010-09-141-16/+14
| | | | | | metze (This used to be ctdb commit 942f44123350d4d0c4ad7f3fcd5ff2d0d175739b)
* add a new serverid to send a message everytime an ip address is taken on the ↵Ronnie Sahlberg2010-09-132-0/+13
| | | | | | local node (This used to be ctdb commit 1261f3d9702800a4e59550c881350daf479f00ef)
* Update the comment for the range reserved for SAMBA andRonnie Sahlberg2010-09-131-1/+4
| | | | | | | | | define a new symbol to represent this range similarly to NFSD and ISCSID Keep the old symbol name to be backward compatible with software using these headers. (This used to be ctdb commit 2ce34e50d057ba95249117a581658a5ad7e8eb60)
* define and reserve a range of ctdb message ports for use by nfs and iscsi ↵Ronnie Sahlberg2010-09-131-0/+12
| | | | | | servers (This used to be ctdb commit 84a44ac8ee74dd7af15e378c6cafbedb95feec60)
* Add two new server types to the server_id structure.Ronnie Sahlberg2010-09-131-1/+5
| | | | | | NFSD and ISCSID for now. (This used to be ctdb commit 4cd4bab68f0ba0305a585a2aabcb6871cdb11d96)
* Implement a new function GETNODEMAP in libctdb.Ronnie Sahlberg2010-09-138-35/+250
| | | | | | | | | | | | | | This function returns a pointer to a nodemap structure. The returned structure must later be freed by calling ctdb_free_nodemap(). Move the definition of ctdb_sock_addr from ctdb_client.h to ctdb_protocol.h Move the definition of the node flags, ctdb_node_and_flags and ctdb_node_map from ctdb_private.h to ctdb_protocol.h Add both sync and async example for ctdb_getnodemap to the test application libctdb/tst.c (This used to be ctdb commit 31c10eb2b337fd7d8a97a1f9e69b0e7570fec71d)
* remove an unused variableRonnie Sahlberg2010-09-131-1/+1
| | | | (This used to be ctdb commit e07fdbaf12bbe84370bc47a1979fe198a06a6cc8)
* Dont try to read the nodemap from the daemon for "ctdb listnodes"Ronnie Sahlberg2010-09-091-44/+19
| | | | | | Always read it from the /etc/ctdb/nodes file (This used to be ctdb commit a0fdb25bb2cac177cdc32b938fa08fd665aa873e)
* Change how NATGW is configured to allow special nodes that do not haveRonnie Sahlberg2010-09-086-48/+116
| | | | | | | | | | | | | | | | | network connectivity outside of the cluster to still be able to participate in a natgw group. These nodes can not become natgw master since they lack external network connectivity. These nodes are configured just the same way as for any other node with NATGW, with the following two exceptions : * we do NOT set CTDB_NATGW_PUBLIC_IFACE at all on these nodes. since these ndoes lack external network we should not check the interface for link. * we must set CTDB_NATGW_SLAVE_ONLY=yes to flag that this is a node that can not become natgw master. (This used to be ctdb commit ab7b00a37e55beffc074be95b55d8a5c7cb9eef2)
* Dont store temporary runtime data in $CTDB_BASE/stateRonnie Sahlberg2010-09-0310-52/+60
| | | | | | | | | since that will usually be /etc/ctdb/state and storing this under /etc is just wrong. Add a new variable CTDB_VARDIR that defaults to /var/ctdb and store the data there instead. (This used to be ctdb commit 516423c25afa9861d9988096efa8a4a2b12b31b1)
* When memory allocations for recovery fails,Ronnie Sahlberg2010-09-031-4/+2
| | | | | | | | dont dereference a null pointer while trying to print the log message for the failure. also shutdown ctdb with ctdb_fatal() (This used to be ctdb commit f8642d0438c6bbb34a72c25d6a904b626e247410)
* AIX bind wants the correct addrsizeHarald Klatte2010-09-031-1/+4
| | | | (This used to be ctdb commit b5169e037fe113a5b62f510646b8fefc055c053b)
* make sure all statd state directories exist before we try to reference themRonnie Sahlberg2010-09-011-0/+5
| | | | | | or else tar and friends will throw an error in the log (This used to be ctdb commit 96cbd2c0aa9a4641a42b3c33374675fa732ed1e5)
* dont print a lot of log information about shutting down vsftpdRonnie Sahlberg2010-09-011-1/+1
| | | | (This used to be ctdb commit 1a41cd7332703629001201eea8ae9b94f1341c9d)
* ouch, remove a dummy debug printout that snuck in there somehowRonnie Sahlberg2010-08-301-2/+0
| | | | (This used to be ctdb commit 14c4d99513b4bdb94f60c3e9c4823e04b0833e60)
* ouch, the ordering of the constants and the strings must be kept in syncRonnie Sahlberg2010-08-301-2/+2
| | | | | | manually and ther eis no check for errors. should fix this later (This used to be ctdb commit e824af1a41f8ceec1edf6b3d1d6e1758fa00deb2)
* remove 61.nfstickles from the makefileRonnie Sahlberg2010-08-301-1/+0
| | | | (This used to be ctdb commit 893465ddde0b730aa142f165cfdc4a57fc5517bf)
* we no longer have a 61.nfstickle scriptRonnie Sahlberg2010-08-301-1/+0
| | | | (This used to be ctdb commit 8909d3a10362a8e58ffd71bc4cd035c12c584157)
* Merge commit 'martins/master'Ronnie Sahlberg2010-08-307-106/+112
|\ | | | | | | (This used to be ctdb commit cc8c851e2e0b46f00b18a6dc61fd2774e97850dd)
| * Test suite: Make NFS tickle test more flexible.Martin Schwenke2010-08-271-5/+5
| | | | | | | | | | | | | | | | Use onnode any where possible rather than a fixed node. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 51561720d2b4db5b307da3d410661075e2a6c3ca)
| * Test suite: Fix NFS tickle test.Martin Schwenke2010-08-271-3/+10
| | | | | | | | | | | | | | | | | | | | | | | | We now kill ctdbd on the test node instead of disabling it. This ensures that the only tickles we see will come from the takeover node. We also sleep for TickleUpdateInterval before checking for asking ctdb about the tickles. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 48cd8325c070f6942aa13a25269021e4c8ed188f)
| * Test suite: Tweak NFS tickle test.Martin Schwenke2010-08-261-2/+3
| | | | | | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit c32ffd203e42a39010ce2d6e98253e8e48de515a)
| * Test suite: Fix typos in NFS tickle test.Martin Schwenke2010-08-261-1/+1
| | | | | | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit c35d3e6341bc4e288393efa429b68bf6568b9b11)
| * Test suite: NFS tickle test uses gettickles if events.d/61.nfstickle missing.Martin Schwenke2010-08-261-7/+11
| | | | | | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 4763ccbfeaedd0fd953dbeda17ef9af41386688b)
| * NFS tickles: use addtickle/deltickle instead of shared tickle directory.Martin Schwenke2010-08-263-62/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds a new function update_tickles() that tracks tickles for a given port using the new ctdb addtickle/deltickle commands. This function is used in events.d/60.nfs to handle NFS tickles. events.d/61.nfstickle is removed. The /proc/sys/net/ipv4/tcp_tw_recycle setup is also moved to events.d/60.nfs. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit dca4c4ebf3c35f8db3ae208efb7a83abbf726ed6)
| * Test suite: in the test eventscript, run "ctdb" not "$CTDB".Martin Schwenke2010-08-261-1/+1
| | | | | | | | | | | | | | | | It is too hard to do anything else... Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 08b636b500855e38e708e6963d8e63ded97c25ec)
| * Merge branch 'master' of git://git.samba.org/sahlberg/ctdbMartin Schwenke2010-08-263-8/+253
| |\ | | | | | | | | | (This used to be ctdb commit 090d9c8443cfa13d45f8c5d2845aea5aa9f7251d)