summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | remove old s3 recovery codeAndrew Tridgell2007-05-103-204/+5
| |_|/ |/| | | | | | | | | | | | | | fixed vnnmap wire format in recover daemon (This used to be ctdb commit e03fab7bfe0cf43f40c49a3d63e75dc44001d8d8)
* | | fixed setvnnmap to use wire structures tooAndrew Tridgell2007-05-102-7/+26
| | | | | | | | | | | | (This used to be ctdb commit 1208e4219d220b80e2f74974cac8ed2b8956d3ef)
* | | separate the wire format and internal format for the vnn_mapAndrew Tridgell2007-05-105-10/+47
| | | | | | | | | | | | (This used to be ctdb commit 9a71718d87c5162f1423d85c2e86a01f6771925e)
* | | moved the vnn_map initialisation out of the cmdline codeAndrew Tridgell2007-05-103-22/+20
| | | | | | | | | | | | (This used to be ctdb commit 81492b840d608dc724d5a25ddef6eb0ce12b95fb)
* | | merged ronnies code to delay client requests when in recovery modeAndrew Tridgell2007-05-101-0/+47
|\| | | |/ |/| | | (This used to be ctdb commit dfca37076d642f3407c63dfe3b685287d27c8f8d)
| * hang the event from the retry structure instead of the hdr structureRonnie Sahlberg2007-05-091-1/+1
| | | | | | | | (This used to be ctdb commit 8536c8c3a30a986ba4945d02aef82b47495ce3f8)
| * when we are in recovery mode and we get a REQ_CALL from a client,Ronnie Sahlberg2007-05-091-0/+41
| | | | | | | | | | | | defer it for one second and try again (This used to be ctdb commit 606fb6414b97d1813056982cda7c0fe84d746e67)
* | merge from ronnieAndrew Tridgell2007-05-098-18/+58
|\| | | | | | | (This used to be ctdb commit f67a4842e7b1efb2ad61c41e4895c7698e564bf3)
| * add a command line flag to ctdbd to start a recovery daemon.Ronnie Sahlberg2007-05-094-7/+21
| | | | | | | | | | | | | | update the recovery test script to start all ctdb daemons with a recovery daemon (This used to be ctdb commit 47794e16df285cacefc30208d892d931a6e46b96)
| * change the name of the recovery daemon to ctdb_recoverdRonnie Sahlberg2007-05-092-3/+3
| | | | | | | | (This used to be ctdb commit b0cf919e4f38961e5cf4e1e79a0cfe4bb4a96d76)
| * add a small tool to monitor recoveryRonnie Sahlberg2007-05-091-0/+13
| | | | | | | | (This used to be ctdb commit b45936828713c31ee670e2106b49c2351234f310)
| * we must repoint dmaster to an invalid node during recovery to stop the Ronnie Sahlberg2007-05-081-8/+19
| | | | | | | | | | | | shortcut from working (This used to be ctdb commit 5e18930be8c0efb87aa9e2780d9457634b24e156)
| * fix alignment bug for pulldbRonnie Sahlberg2007-05-081-0/+2
| | | | | | | | (This used to be ctdb commit f1188289c18805c2c5f8bae61d73df3fc762faee)
| * merge from tridgeRonnie Sahlberg2007-05-070-0/+0
| |\ | | | | | | | | | (This used to be ctdb commit da8636707547e77c76dc7e368ddfae35b8a21402)
* | | fixed a problem with the number of timed events growing without bound with ↵Andrew Tridgell2007-05-082-4/+9
| |/ |/| | | | | | | | | the new seqnum code (This used to be ctdb commit 6109ae3dae8d93c93a2dc76cc561ea6e21458aa6)
* | merged from ronnieAndrew Tridgell2007-05-078-182/+734
|\| | | | | | | (This used to be ctdb commit 49aad9fb09ca2c787e6f82ba03cb229cc51844f0)
| * hang the timeout event off state and thus we dont need to explicitely Ronnie Sahlberg2007-05-071-6/+1
| | | | | | | | | | | | | | free it and also we wont accidentally return from the function without killing the event first (This used to be ctdb commit e3d72d024ef7342a808e5c488fd646a39e5fac78)
| * it now works to talloc_free() the timed event if we no longer want it to Ronnie Sahlberg2007-05-071-4/+2
| | | | | | | | | | | | | | | | | | trigger this must have been a sideeffect of a different bug in the recoverd.c code that has now been fixed (This used to be ctdb commit 676446fd1083c371ad0ff72dd8c636ec8e6d1423)
| * recovery daemon with recovery master electionRonnie Sahlberg2007-05-073-4/+248
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | election is primitive, it elects the lowest vnn as the recovery master two new controls, to get/set recovery master for a node to use recovery daemon, start one ./bin/recoverd --socket=ctdb.socket* for each ctdb daemon it has been briefly tested by deleting and adding nodes to a 4 node cluster but needs more testing (This used to be ctdb commit 541d1cc49d46d44042a31a8404d521412ef2fdb3)
| * add new controls to get and set the recovery master node of a daemonRonnie Sahlberg2007-05-075-5/+76
| | | | | | | | | | | | i.e. which node is "elected" to check for and drive recovery (This used to be ctdb commit d577093eb4b619392c71ab5ce81e8c02565d93f0)
| * add a test in the function that checks whether the cluster needs Ronnie Sahlberg2007-05-071-9/+37
| | | | | | | | | | | | | | | | | | recovery or not that all active nodes are in normal mode. If we discover that some node is still in recoverymode it may indicate that a previous recovery ended prematurely and thus we should start a new recovery (This used to be ctdb commit c15517872e6c98c8c425a8d47d2b348ecb0620b0)
| * update a comment to be more desciptiveRonnie Sahlberg2007-05-061-1/+1
| | | | | | | | (This used to be ctdb commit 96082c54d830974bf9a4d5bad33ad60379a85798)
| * change a lot of printf into debug statementsRonnie Sahlberg2007-05-061-37/+38
| | | | | | | | (This used to be ctdb commit 6edb9149c7eb36da47e4e6a9dd3ede22263ce3f9)
| * break out the code to update all nodes to the new vnnmap into a helper Ronnie Sahlberg2007-05-061-11/+27
| | | | | | | | | | | | function (This used to be ctdb commit 81d39177949b54715710907d14ddc888dc09b064)
| * create a helper function for recovery to push all local databases out Ronnie Sahlberg2007-05-061-19/+34
| | | | | | | | | | | | onto the remote nodes (This used to be ctdb commit 1ba76d374652cfa29e56fb77c7190349e42d3bcc)
| * add an extra blank lineRonnie Sahlberg2007-05-061-0/+1
| | | | | | | | (This used to be ctdb commit 75096dde58df6532abbf5b9ebd771e8810156483)
| * break the code that repoints dmaster for all local and remote records Ronnie Sahlberg2007-05-061-13/+31
| | | | | | | | | | | | into a separate helper function (This used to be ctdb commit d5ab30d0ac21e736eb34eaa19bccfee5f0ce7cfb)
| * create a helper function for recovery that pulls and merges all remote Ronnie Sahlberg2007-05-061-20/+40
| | | | | | | | | | | | databases onto the local node (This used to be ctdb commit 5cecc47449c369f91e83389a94b987ac32b1e3f4)
| * create a helper function to make sure the local node that does recovery Ronnie Sahlberg2007-05-061-50/+68
| | | | | | | | | | | | has all the databases that exist on any other remote node (This used to be ctdb commit 0f436e3d40fea6e6a146019b0c664e80e81e88b4)
| * add a helper function to create all missing remote databases detected Ronnie Sahlberg2007-05-061-86/+65
| | | | | | | | | | | | during recovery (This used to be ctdb commit 04758c6f7d8f61260be6d2472380cb7904984427)
| * break out the setting/clearing of recovery mode into a dedicated helper Ronnie Sahlberg2007-05-061-22/+30
| | | | | | | | | | | | function (This used to be ctdb commit dba4e4f8aa4f2fde1e9f8d93bdf3a33f7de8ce18)
| * dont allocate arrays where we can just return a single integerRonnie Sahlberg2007-05-062-16/+7
| | | | | | | | (This used to be ctdb commit 07bc338e490e0f7018808a2450bc54863eb88c94)
| * dont use arrays where a uint32_t works just as wellRonnie Sahlberg2007-05-061-4/+5
| | | | | | | | (This used to be ctdb commit 843e974b29c93df891ae7cf13323ee960a334f60)
| * add a ifdeffed out block to the call.Ronnie Sahlberg2007-05-061-2/+9
| | | | | | | | | | | | | | we really should kill the event in case the call completed before the timeout so that we can also make timed_out non-static (This used to be ctdb commit f297eed589b1d4e188f77f195683365cf91d0e62)
| * hte timed_out variable needs to be static and can not be on the stack Ronnie Sahlberg2007-05-061-1/+1
| | | | | | | | | | | | | | | | since if the command times out and we return from ctdb_control we may have events that can trigger later which will overwrite data that is no longer in our stackframe (This used to be ctdb commit 93942543092be618c0bd8ef68b470b0789bad7ad)
| * update to rhe recovery daemonRonnie Sahlberg2007-05-062-10/+55
| | | | | | | | | | | | | | | | ctdb_ctrl_ calls are timedout due to nodes arriving or leaving the cluster it crashes the recovery daemon afterwards with a SEGV but no useful stack backtrace (This used to be ctdb commit cd3abc7349e86555ccd87cd47a1dcc2adad2f46c)
| * in the recover testRonnie Sahlberg2007-05-061-36/+36
| | | | | | | | | | | | | | | | | | start the daemons with explicit socketnames and explicit ip address/port remove all --socket= from all ctdb_control calls since they are not needed anymore (This used to be ctdb commit 593a959d428f5b4a913117a9b5c8fe65a3eb950e)
| * add support in catdb to dump the content of a specific nodes tdb instead Ronnie Sahlberg2007-05-062-18/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | of traversing the full cluster. this makes it easier to debug recovery update the test script for recovery to reflect the newish signatures to ctdb_control the catdb control does still segfault however when there are missing nodes in the cluster as there are toward the end of the recovery test (This used to be ctdb commit 8de2a97c14a444f817ceb36461314f10c9601ecc)
| * merge from tridgeRonnie Sahlberg2007-05-0625-85/+222
| |\ | |/ |/| | | (This used to be ctdb commit 08173e3ab77178b9841db0081a51b93291d9e8dc)
* | merge relevant lib code from samba4Andrew Tridgell2007-05-059-51/+64
| | | | | | | | (This used to be ctdb commit 8076a7c7e12da6d59bae31a2e4a0267d87c7b1b3)
* | merged vnn map broadcast from ronnieAndrew Tridgell2007-05-056-10/+30
|\ \ | | | | | | | | | (This used to be ctdb commit c0fa029435fdaa0be006b28eddb6b31beb2ee605)
* | | - take advantage of the new EVENT_FD_AUTOCLOSE flagAndrew Tridgell2007-05-055-17/+28
| | | | | | | | | | | | | | | | | | - use the tdb_chainlock_mark() call to allow us to guarantee forward progress in the ctdb_lockwait code (This used to be ctdb commit e201e98aad0fef6a779a80f3b1ae7792953e2d6b)
* | | allow the events system to be chosen on the command lineAndrew Tridgell2007-05-051-1/+18
| | | | | | | | | | | | (This used to be ctdb commit 2fe976d7a376a763472cc7952a78b6249ce416c8)
* | | use the new lib/events autoconf codeAndrew Tridgell2007-05-053-4/+4
| | | | | | | | | | | | (This used to be ctdb commit fec779711e8c4d6e047d792aee744e60e5a9f67c)
* | | - added a EVENT_FD_AUTOCLOSE flag that allows you to tell the event system ↵Andrew Tridgell2007-05-059-9/+78
| | | | | | | | | | | | | | | | | | | | | | | | to close the fd automatically when a fd_event is freed. This prevents races which can lead to epoll missing events - added autoconf rules for automatically building with epoll support (This used to be ctdb commit 4d113298b26f7163992f2e47429c953bd4f957c9)
* | | added tdb_chainlock_mark() call, which can be used to mark a chain locked ↵Andrew Tridgell2007-05-052-3/+30
| | | | | | | | | | | | | | | | | | without actually locking it. This will be used to guarantee forward progress in the ctdb non-blocking lockwait code (This used to be ctdb commit 2af98c3418496b39106c7282f550049ec8239657)
| | * add a control to get the pid of a daemon.Ronnie Sahlberg2007-05-066-2/+67
| | | | | | | | | | | | | | | | | | | | | this makes it possible to kill a specific daemon in the recover test script (This used to be ctdb commit 2fa394b4c80988cb1a6d04b236ec64cc9d9e8a40)
| | * merge from tridgeRonnie Sahlberg2007-05-054-3/+5
| |/| | |/ |/| | | (This used to be ctdb commit 8648104f8d76d22427c14422b126f7e979cc2d95)
* | show number of connected clients in status outputAndrew Tridgell2007-05-054-3/+5
| | | | | | | | (This used to be ctdb commit 99765bbe327bfe9c43415f4943281458f25be51b)
| * split the vnn broadcast address into twoRonnie Sahlberg2007-05-056-10/+30
| | | | | | | | | | | | | | | | | | | | | | one broadcast address for all nodes and one broadcast address for all nodes in the current vnnmap update all useage of the old flag to now only broadcast to the vnnmap except for tools/ctdb_control where it makes more sense to broadcast to all nodes (This used to be ctdb commit dfb65b88cf67ad9d61268c4b47a6d8ae346f47df)