summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| | * | READONLY: dont schedule for fast vacuum deletion if any of the readonly ↵Ronnie Sahlberg2012-02-211-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | record flags are set (This used to be ctdb commit b3307d78fd15f446b423f8cdd1e403f89fbe8ac8)
| | * | Revert "ReadOnly: We can not use ctdb_ltdb_store from a client/child context ↵Ronnie Sahlberg2012-02-211-23/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | since" This reverts commit 11dee7f3f881494cf5089d6c69fd40e74f07e670. Try to solve this a different way so that ctdb_ltb_store() becomes safe to use also from child context (This used to be ctdb commit 5990fe65a9cc37933ceff15d4cb2ab3b3a0addb6)
| * | | Merge branch 'master' of 10.1.1.27:/shared/ctdb/ctdb-masterRonnie Sahlberg2012-02-202-10/+25
| |\| | | | | | | | | | | | | | (This used to be ctdb commit 0fd3bf919b1b8e5aaa98444c306c6770a6a3209f)
| | * | ReadOnly: We can not use ctdb_ltdb_store from a client/child context sinceRonnie Sahlberg2012-02-201-10/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | it sometimes (for empty records) needs to be able to initiate traffic unde rhte daemon context. This should furhter updated later to allow the use also from non-daemon context. (This used to be ctdb commit 11dee7f3f881494cf5089d6c69fd40e74f07e670)
| | * | ReadOnly: Make sure we dont try to fast-vacuum records that are set for ↵Ronnie Sahlberg2012-02-201-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | readonly delegation (This used to be ctdb commit 303134cf10a08ce61954d5de9025d9bbcb5f75ef)
| * | | Merge branch 'master' of ssh://git.samba.org/data/git/ctdbRonnie Sahlberg2012-02-2014-21/+422
| |\ \ \ | | |/ / | |/| | | | | | (This used to be ctdb commit d3c54ae9cc83f74d15f40bbfff95404b270d2f80)
| | * | Fix the build on freebsd9. (typo in flags?)Michael Adam2012-02-181-1/+1
| | | | | | | | | | | | | | | | (This used to be ctdb commit 650bb17335876f3e91e76a47b748c9236d0f3045)
| | * | Add common/system_freebsd.cVolker Lendecke2012-02-133-1/+381
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Michael Adam <obnox@samba.org> (This used to be ctdb commit 89067e12b868974f9909b447ab5e202d612ac44f)
| | * | Add includes required on FreeBSDVolker Lendecke2012-02-137-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Michael Adam <obnox@samba.org> (This used to be ctdb commit be5c3a57df39d85fbb7ee922924787340e2b0595)
| | * | FreeBSD does not define s6_addr32, only s6_addrVolker Lendecke2012-02-133-20/+29
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Michael Adam <obnox@samba.org> (This used to be ctdb commit d657af4fb68ce3f7c462856f2934f6bf169e120b)
| | * | Make CTDB_CURRENT_NODE work with CTDB_REQ_MESSAGEVolker Lendecke2012-02-131-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Michael Adam <obnox@samba.org> (This used to be ctdb commit be8a153346ca7d40f09a6d03aad655aaa5c4a903)
| * | | TESTS: Add test for wipedb commandRonnie Sahlberg2012-02-161-0/+68
| |/ / | | | | | | | | | (This used to be ctdb commit 4ea05fef886b0680d0ad0936c239a51fd75bf000)
| * | READONLY: add test for creating and revoking delegationsRonnie Sahlberg2012-02-131-0/+163
| | | | | | | | | | | | (This used to be ctdb commit a7e7fa2169ee12f817336f6d03d5bb72df7ec020)
| * | READONLY: Update the fetch-readonly-once test tool to use CTDB_SOCKET if setRonnie Sahlberg2012-02-131-2/+6
| | | | | | | | | | | | (This used to be ctdb commit f4d395165816f74839ed48860e3210e05bc16d3d)
| * | READONLY: document the command to activate readonly record supportRonnie Sahlberg2012-02-133-509/+341
| | | | | | | | | | | | (This used to be ctdb commit f0bc1760c36c8589f58354c50b23880946cb57c6)
| * | READONLY: allow specifying the db name for setdbreadonly instead of just ↵Ronnie Sahlberg2012-02-131-2/+31
| | | | | | | | | | | | | | | | | | the hash (This used to be ctdb commit 3c2117e8e4156e0048fbd2c94546112f0c588522)
| * | Load platform dependent objs instead of Linux oneMathieu Parent2012-02-113-7/+1
| |/ | | | | | | | | | | | | | | | | | | | | This fix compilation on Gnu/Hurd and kFreeBSD See also: https://buildd.debian.org/status/fetch.php?pkg=ctdb&arch=hurd-i386&ver=1.12%2Bgit20120201-1&stamp=1328211119 https://buildd.debian.org/status/fetch.php?pkg=ctdb&arch=kfreebsd-amd64&ver=1.12%2Bgit20120201-1&stamp=1328214761 https://buildd.debian.org/status/fetch.php?pkg=ctdb&arch=kfreebsd-i386&ver=1.12%2Bgit20120201-1&stamp=1328215875 (This used to be ctdb commit 496e8f8540f78606ef23ee8fa100eb2b2cf3f106)
| * ReadOnly: add per-database statistics to view how much delegations/revokes ↵Ronnie Sahlberg2012-02-0811-0/+237
| | | | | | | | | | | | we have (This used to be ctdb commit 751ed46197661eb841042ab6a02855a51dd0b17c)
| * STATISTICS: add total counts for number of delegations and number of revokesRonnie Sahlberg2012-02-084-0/+7
| | | | | | | | | | | | | | | | | | Everytime we give a delegation to another node we count this as one delegation. If the same record is delegated to several nodes we count one for each node. Everytime a record has all its delegations revoked we count this as one revoke. (This used to be ctdb commit b098bcf8007be63889aaed640a951b0eeaa9d191)
| * TESTS: Add a test that verifies that RecoverPDBBySeqNum works as expected.Ronnie Sahlberg2012-02-081-0/+232
| | | | | | | | | | | | If this tunable is set to 1 AND the persistent database contains a record "__db_sequence_number__" then we will recover the whole database as-is instead of doing the record by record recovery (This used to be ctdb commit 3e5d2b61fcb4d0062d2573d99724f630a4fc4622)
| * Ad test tool to store data and ctdb header into a local tdb fileRonnie Sahlberg2012-02-071-1/+64
| | | | | | | | (This used to be ctdb commit c6433e43ad2481d84e8d9a1ee1c6e29b90423a86)
| * TFETCH add verbose flag to print also the record ltdb heaerRonnie Sahlberg2012-02-071-5/+13
| | | | | | | | (This used to be ctdb commit 25d797f61c3b5b7090fb662adde6ed9e434e8a61)
| * CTDB: update tfetch so we can specify a hexadecimal string as keyRonnie Sahlberg2012-02-071-10/+45
| | | | | | | | (This used to be ctdb commit 70d22efdf104db1fc951263cedfbdb95b0b44342)
| * TESTS: ctdb_fetch needs to allow tevent nestingRonnie Sahlberg2012-02-061-0/+1
| | | | | | | | (This used to be ctdb commit 4fa3f109b7ddc40e79c5fbb9688e0e830c0a655e)
| * Merge remote branch 'martins/tests'Ronnie Sahlberg2012-02-063-11/+123
| |\ | | | | | | | | | (This used to be ctdb commit 5f660e5bf321ae5332bf1d32c8af36d6cc2569f4)
| | * Tests: eventscripts - fix breakage in some NFS testsMartin Schwenke2012-02-061-10/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1341329f6125d491b82c873f793af819e677f714 either contains typos or attempts to influence the test depending on the host system. Whatever the cause, a test system (e.g. my laptop) might not have /etc/sysconfig/nfs, so that can't be used to cause the stub etc/sysconfig/nfs to be loaded. We make the tests work by default again, leaving in some flexibility over configuration file location. If the goal is to force a Debian-style test mode then: * The tests are currently probably quite RHEL-centric anyway, so more work is probably needed. * Use an environment variable to indicate the distro test mode and make functions like setup_nfs() remove all of the various configuration files and create one in the distro-specific location. I won't do this now... ENOTIME... Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 4aa4a5790ea9ad20e4d25404760c449b358b5260)
| | * Tests: eventscripts - make init test pass with recent change to 10.interfaceMartin Schwenke2012-02-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | e646142f4d28b5401235cd5edee325f7a29f8193 changes the output on the init event. This accommodates that change. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 48cb55aae47d11487bdf004a79df56779d1825a0)
| | * Tests: new test to check that "ctdb delip" removes the IP from interface.Martin Schwenke2012-02-061-0/+115
| | | | | | | | | | | | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit a63e603cb7e21a7334c6a07bc4415ff089dab3c1)
| * | Merge remote branch 'martins/takeover'Ronnie Sahlberg2012-02-061-5/+81
| |\ \ | | | | | | | | | | | | (This used to be ctdb commit 4948f34676d5bdaaf1ddf8879df618a76013ea1e)
| | * | Test - IP allocation simulation - add -e option to run the daemon's algorithmMartin Schwenke2012-02-061-4/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A recent change in the deamon's (i.e. real) IP allocation algorithm uses qsort(3). This makes it very difficult to get the same results in Python, since qsort's behaviour on identical keys is undefined. Add a -e option to run "../bin/ctdb_takeover_tests ctdb_takeover_run_core" instead of the internal Python algorithm. We pass the current cluster state and read it back from the output of the test program. This is currently a rough hack. Perhaps it'll be improved later... :-) Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit eed3f4988290bbe317a7aaa6f61826676dd8365a)
| | * | Tests - IP allocation simulation - LCP2 => non-deterministicMartin Schwenke2012-02-061-1/+6
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The default in this script is still deterministic IPs. The LCP2 option should really turn off deterministic IPs. Also fix a typo... Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit c378a059b35fcc9955215a0095826c919d42153c)
| * | Tests - ctdb tool - add verbose option and output filteringMartin Schwenke2012-02-062-2/+14
| | | | | | | | | | | | | | | | | | | | | | | | Need to filter dates before comparing... Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 6127515ea62173ff1574d1217129ec05a8fbeb3f)
| * | Tests - ctdb tool - fix "ctdb status" testMartin Schwenke2012-02-061-6/+6
| | | | | | | | | | | | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 47e86c33d768816d03817124481bb6aa967bf2a6)
| * | Tests - let run_tests.sh take a list of tests to runMartin Schwenke2012-02-061-1/+1
| | | | | | | | | | | | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit fa00bbf7d7378eecb5ba77684d01db90c9370bca)
| * | Tests: initial ctdb tool testcasesMartin Schwenke2012-02-0611-0/+341
| | | | | | | | | | | | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 47e9975fa75a7bb2628a751dc19d35e2c5c57ce3)
| * | Tests: fix usage message in ctdb_tool_libctdbMartin Schwenke2012-02-061-1/+1
| | | | | | | | | | | | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit ca1d2bb62e61b7d723a648b3a9b146e258efcabb)
| * | Tests: libctdb stubs should fail when current node disconnectedMartin Schwenke2012-02-061-0/+46
| | | | | | | | | | | | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit f96954b42b03f810f7b1732b5fe00c5dab2d8cb8)
| * | Tests - add a version of the ctdb tool that compiles against libctdb stubsMartin Schwenke2012-02-062-1/+56
| | | | | | | | | | | | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 6c79b951c3ae68238f8dbd836ceca6c1187eaabe)
| * | ctdb tool - free some memory used by poptMartin Schwenke2012-02-061-0/+1
| | | | | | | | | | | | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 7339e87019c0ab44522bf160234307472c05dc14)
| * | Tests - allow tools/ctdb.c:main() to be usedMartin Schwenke2012-02-061-0/+30
| | | | | | | | | | | | | | | | | | | | | | | | We'll need stubs somewhere else... Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 6f29c39d666485fddef60e9d87bf94082d179ebb)
| * | Tests - more libctdb stub test infrastructureMartin Schwenke2012-02-062-3/+86
| | | | | | | | | | | | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 25a0136bd773e7ed8dfda635471f0498d4a7afe9)
| * | Tests - more libctdb stubs and supporting state faking functionsMartin Schwenke2012-02-061-5/+197
| | | | | | | | | | | | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 9bfc3b04ffeca056d8507d1cc8bc20f56c8e1572)
| * | ctdb tool - convert control_status() over to use just libctdb()Martin Schwenke2012-02-061-11/+8
| | | | | | | | | | | | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit abe9985e503d998cf597933a594b445de8d3cec6)
| * | libctdb - add ctdb_getvnnmap()Martin Schwenke2012-02-065-20/+172
| | | | | | | | | | | | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit f6039eaece4224b866a98dd49010f278a7b3f015)
| * | Tests - update test code for ctdb tool code and libctdb stubsMartin Schwenke2012-02-062-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | Rename ctdb_parse_nodestring.c to ctdb_tool_libctdb.c. It can contain many tests. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit d597020af01dfcdf0d39e1cf579bf33f43f87dda)
| * | ctdb tool - Fix parse_nodestring() related issuesMartin Schwenke2012-02-061-6/+10
| |/ | | | | | | | | | | | | | | An old, buggy version of this code was merged. This fixes it. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit bc4d5d5f0048487776f9f5d9f04a0af2e5d45aac)
| * Add a hoook to the ctdb initscript that we can call out to for applications ↵Ronnie Sahlberg2012-02-061-0/+2
| | | | | | | | | | | | | | | | | | | | that want to track and produce audit logs when someone runs "service ctdb <something>" S1033891 (This used to be ctdb commit 4f4fbd4080a3a7226d3b82637f803c4b71217d39)
| * ReadOnly update documentationRonnie Sahlberg2012-02-011-87/+170
| | | | | | | | (This used to be ctdb commit e1da34874f22ec3de0c4abe50b703dd637f1fa98)
| * ReadOnly: update the loop test tool to print number of fetches per secondRonnie Sahlberg2012-02-011-2/+11
| | | | | | | | (This used to be ctdb commit f53c66a5e0dc5351b86b81dc5b1faea757981d4c)
| * Niceify the readonlyrecord API. Dont force clients to be exposed to the ↵Ronnie Sahlberg2012-01-313-8/+47
| | | | | | | | | | | | | | | | | | | | | | | | featch_with_header function We dont strictly need to force clients to use CTDB_FETCH_WITH_HEADER instead of CTDB_FETCH when they ask for readonly records. Have ctdbd internally remap this internally to FETCH_WITH_HEADER and map the reply back to CTDB_FETCH_FUNC or CTDB_FETCH_WITH_HEADER_FUNC based on what the client initially asked for. This removes the need for the client to know about the CTDB_FETCH_WITH_HEADER_FUNC function and simplifies the client code. Clients that do not care what the header after the request is can just continue using the old CTDB_FETCH_FUNC call and ctdbd will do all the difficult stuff. (This used to be ctdb commit 444a7bac4e9a854b06c1ad4cb36c2b58a72001fa)