summaryrefslogtreecommitdiffstats
path: root/ctdb/tests/src/ctdb_transaction.c
Commit message (Collapse)AuthorAgeFilesLines
* Revert "tests: If transaction_start fails, try again"Amitay Isaacs2013-11-071-1/+1
| | | | | | | | | | | | This reverts commit ed7d999214ee009e480c26410a04fa105028cb8e. This is not necessary since ctdb_transaction_start() now will return NULL only when there is a failure and not when another transaction is currently active. Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 46615c8e0e63291605d76a6d35f1a93180718c36)
* tests: If transaction_start fails, try againAmitay Isaacs2013-10-081-1/+1
| | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit ed7d999214ee009e480c26410a04fa105028cb8e)
* tests: Make sure test exits with zero status on successful completionAmitay Isaacs2013-10-081-2/+5
| | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit af4b6b8b3222d2a3c425fcc6833db579d0cd7ffa)
* tests: Re-enable transaction test codeAmitay Isaacs2013-10-041-3/+0
| | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 929045335212e825deb645cc6c7f97b8a40fdbb3)
* Remove explicit include of lib/tevent/tevent.h.Amitay Isaacs2012-04-131-1/+0
| | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 0681014ca5ed2a9b56f63fdace7f894beccf8a9a)
* client: add timeout argument to ctdb_attachDavid Disseldorp2011-09-061-2/+4
| | | | | | Rather than using a fixed 2 second CTDB_CONTROL_GETDBPATH timeout. (This used to be ctdb commit 9e178671560cb95121e11d718a76b05380ecd6c5)
* client: add req timeout argument to ctdb_cmdline_clientDavid Disseldorp2011-09-061-1/+1
| | | | | | | | | | | Following connection to the local ctdbd, ctdb_cmdline_client() currently issues a CTDB_CONTROL_GET_PNN request with a fixed 3 second timeout. The ctdb cmd line client accepts a --timelimit argument for specifying a per request timeout, pass this value through to ctdb_cmdline_client() for use as a CTDB_CONTROL_GET_PNN request timeout. (This used to be ctdb commit 0634d0305f42f17048b6830733767e8dc300e11c)
* event: Update events to latest Samba version 0.9.8Rusty Russell2010-08-181-1/+1
| | | | | | | | | | | | | In Samba this is now called "tevent", and while we use the backwards compatibility wrappers they don't offer EVENT_FD_AUTOCLOSE: that is now a separate tevent_fd_set_auto_close() function. This is based on Samba version 7f29f817fa939ef1bbb740584f09e76e2ecd5b06. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (This used to be ctdb commit 85e5e760cc91eb3157d3a88996ce474491646726)
* tests: temporarily disable the transaction test tool.Michael Adam2009-12-121-0/+3
| | | | | | | | | | | Make it return success for make test. This is temporarily disabled until the rewrite of the transaction code (in samba and the daemon) using the global lock feature has been ported to the ctdb client code. Michael (This used to be ctdb commit 78ca29352aa39f4ef4e41096b92d55cb2e0d348a)
* tests: remove the no_trans mode from ctdb_transaction.Michael Adam2009-12-091-58/+34
| | | | | | | | | Writes without transaction are not possible any more on persistent databases. Michael (This used to be ctdb commit 59f46d7261dfdbdef900bf95dd9eb28ad22a46b2)
* tests:ctdb_transaction: print an extra counters when a commit failsMichael Adam2009-12-041-0/+1
| | | | | | Michael (This used to be ctdb commit 4113385865f53a57b18ea752a7dad8a08bed588e)
* tests: turn printfs into DEBUG statements in the ctdb_transaction testMichael Adam2009-12-041-18/+18
| | | | | | Michael (This used to be ctdb commit 0e130d79ab71cf3aa65c40af91866823246a0283)
* Revert "dont exit on a commit failure"Michael Adam2009-10-301-1/+1
| | | | | | | | | | | This reverts commit 4e9a3a5dc232bac12ab387ea0cf4f1b279bed5c1. Transaction commit should not be allowed to fail. This is a real error. Michael (This used to be ctdb commit 825c506da76d7afd0714b75b8c8727874183a618)
* dont exit on a commit failureRonnie Sahlberg2009-10-011-1/+1
| | | | (This used to be ctdb commit 4e9a3a5dc232bac12ab387ea0cf4f1b279bed5c1)
* Revert "dont check if commit failed, we do allow the commit to fail sometimes"Michael Adam2009-09-211-1/+1
| | | | | | | | | | | This reverts commit affa6f47432507e84b7e76b88a2c27fff8e6e2e4. Transaction commit should not be allowed to fail. This is a fatal error. Michael (This used to be ctdb commit 4364419a486c1995bea56dab603cc4960e7c8e7a)
* Revert "try to restart statd everytime it fails, not just the first time"Ronnie Sahlberg2009-09-151-1/+1
| | | | | | This reverts commit 4f7b39a4871af28df1c4545ec37db179fa47a7da. (This used to be ctdb commit db7b96304e4725f29b12398b7582e385daed63ed)
* try to restart statd everytime it fails, not just the first timeRonnie Sahlberg2009-09-151-1/+1
| | | | (This used to be ctdb commit 4f7b39a4871af28df1c4545ec37db179fa47a7da)
* dont check if commit failed, we do allow the commit to fail sometimesRonnie Sahlberg2009-09-091-1/+1
| | | | (This used to be ctdb commit affa6f47432507e84b7e76b88a2c27fff8e6e2e4)
* From Michael Adam:Ronnie Sahlberg2009-07-291-34/+95
| | | | | | Update the transaction test tool to the new api for transactions (This used to be ctdb commit 4d9a53f142deba6ab578af2fc35bfa99c29c3a99)
* Move tests/*.c to tests/src/*.c and adjust Makefile.in accordingly.Martin Schwenke2008-11-211-0/+258
Move setting of $CTDB_NODES_SOCKETS to tests/scripts/run_tests and make it only happen if $CTDB_TEST_REAL_CLUSTER is not set. Bugfix in function ips_are_on_nodeglob. New/proper implementations of functions stop_daemons and start_daemons, now called by function restart_ctdb. In start_daemons.sh, add public addresses file generation/usage, use new option --nopublicipcheck to ctdbd to avoid crazy behaviour and kill ctdbd more carefully to avoid killing real daemons on a real cluster - this should be able to coexist on a node of a real cluster. start_daemons.sh is temporarily incompatible with start_daemons function, but expecting to replace that script with function calls very soon anyway... Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 4c54772c5c2fa7d2a25963379b5b96caf0c2521c)