summaryrefslogtreecommitdiffstats
path: root/ctdb
Commit message (Collapse)AuthorAgeFilesLines
...
| * make catdb take a dbname instead of an idAndrew Tridgell2007-05-041-6/+7
| | | | | | | | (This used to be ctdb commit 365346345c33d2f310bb23d0c6ab5c3ed5e6e938)
| * nicer interface to ctdb traverseAndrew Tridgell2007-05-045-91/+90
| | | | | | | | (This used to be ctdb commit e5ce866dcc5037b5069e42bf1e168b646f007b01)
* | remove a exit from the test scriptRonnie Sahlberg2007-05-041-2/+0
| | | | | | | | (This used to be ctdb commit 4adb61f8270dbd15732bc458d49a66138dd240cc)
* | recovery daemonRonnie Sahlberg2007-05-048-55/+386
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | this program is a client to the local ctdb daemon every second it pulls all vnnmap and nodemaps from all nodes that are available and checks if a recovery is required a recovery is required if : * all nodes do NOT have an identical vnnmap and generation * all nodes do NOT have an identical nodemap * there are active nodes that are NOT in the nodemap * there are nodes in the nodemap that are NOT active During recovery, the recovery tool will also make sure that all nodes know about and have created all databases. (This used to be ctdb commit 2f2650467bac7e8954de7c17cb34f46b0bdbcd26)
* | also verify that the generation id is the same on all the nodes and if Ronnie Sahlberg2007-05-041-1/+10
|/ | | | | | not, trigger a recovery (This used to be ctdb commit 46b8a66ee70419c153acf45eeec88c1fc8f230ce)
* - changed the REQ_REGISTER PDU to be a controlAndrew Tridgell2007-05-0410-72/+105
| | | | | | | | | | | | - allow controls to know which client invoked them - added a client_id to clients, so they can be identified remotely - added the ability to remove registered srvids - in the list_keys code, register a temp srvid, then remove it afterwards (This used to be ctdb commit 29603c51cc6d81362532cd8e50f75c8360c5f5ef)
* merge from ronnieAndrew Tridgell2007-05-049-141/+447
|\ | | | | | | (This used to be ctdb commit cf23175526d8fde1ef145605fb545584384b6cec)
| * update getvnnmap control to take a timeout parameterRonnie Sahlberg2007-05-044-15/+140
| | | | | | | | | | | | | | | | | | | | | | | | dont explicitely free the vnnmap pointer in the getvnnmap control this is freed by the mem_ctx instead add code to the recoverd to detect when/if recovery is required veiry that the number of active nodes, the nodemap and the vnn map is consistent across the entire cluster and if not trigger a recovery (which right now just prints "we need to do recovery" to the screen. (This used to be ctdb commit 2b0a207a3748bdb3394dc9fd0d1c344ee1bb0bb5)
| * change the signature for ctdb_ctrl_getnodemap() so that a timeout Ronnie Sahlberg2007-05-044-19/+32
| | | | | | | | | | | | | | parameter is added. change ctdb_get_connected_nodes in the same way (This used to be ctdb commit d85f23bcf4c1230225abb2f4a053c70b68d469aa)
| * ctdb_control should use the provided timeout and not hardcode to 1.0 Ronnie Sahlberg2007-05-041-1/+1
| | | | | | | | | | | | seconds (This used to be ctdb commit 03acb2f450578f6195ab2d0a598f6720e33e7cfb)
| * start working on a recovery daemonRonnie Sahlberg2007-05-045-29/+196
| | | | | | | | | | | | | | | | | | | | | | | | | | | | change ctdb_control so it takes a timeval pointer as argument. this is the timeout. if the node has not responded within hte timeout ctdb_control will return an error instead of hanging. if the timeval pointer is NULL then the call will block indefinitely if there is no response. this is used for now in the createdb control but all the helpers ctdb_ctrl_* should probably be updated to take a timeout parameter as well. (This used to be ctdb commit 1fe64b04869b17dbf123851b0fe09df8d28a6211)
| * merge from tridgeRonnie Sahlberg2007-05-038-86/+484
| |\ | |/ |/| | | (This used to be ctdb commit fb8ac93c7dfc11e774ef1ce05b0d0df1de56a621)
* | first version of traverse is workingAndrew Tridgell2007-05-038-86/+484
| | | | | | | | (This used to be ctdb commit ecac90cee389a6fa0e9b1efba521e098a24d323f)
| * cleanup the control "write record"Ronnie Sahlberg2007-05-034-74/+75
|/ | | | (This used to be ctdb commit 4dd5c26a21a5dc2b2f76eb23cfeb4df82ba4e956)
* merged from ronnieAndrew Tridgell2007-05-036-137/+136
|\ | | | | | | (This used to be ctdb commit 57a80110ddfd202f8de37297db76dc43a064e476)
| * cleanup getnodemapRonnie Sahlberg2007-05-036-86/+80
| | | | | | | | (This used to be ctdb commit 3867ccf71a167fb82dbc5a3f03f968a325a0c70b)
| * fixup getdbmap control so it looks a bit nicerRonnie Sahlberg2007-05-036-58/+63
| | | | | | | | (This used to be ctdb commit 78a4d61cb78da20af5210488e685c91bc3023e90)
* | don't zero beyond packet header unnecessarilyAndrew Tridgell2007-05-031-6/+11
| | | | | | | | (This used to be ctdb commit 4cf88ca2ce81db8fe10b0dfedb81d99a2bd93328)
* | first stage of efficient non-blocking ctdb traverseAndrew Tridgell2007-05-035-4/+188
|/ | | | (This used to be ctdb commit 4c23e6f26bde421bb56b55de9d6cd3e319b2be40)
* break set/get vnn map out from ctdb_control and put it in ctdb_recover.c Ronnie Sahlberg2007-05-038-95/+115
| | | | | | | | for the time being remove all the [de]marshalling and just pass a structure around instead (This used to be ctdb commit b1169555ab7015976c0135ff51121cc238f5887c)
* merge from ronnieAndrew Tridgell2007-05-039-50/+385
|\ | | | | | | (This used to be ctdb commit daba707370b28e200d9e55eb81fc819b62f8fbdd)
| * merge from tridgeRonnie Sahlberg2007-05-025-87/+79
| |\ | | | | | | | | | (This used to be ctdb commit 17b73a811009588f836c3f9fd1b775d9d504d30c)
| * | do a real recovery by killing a node and then calling the recover Ronnie Sahlberg2007-05-021-8/+19
| | | | | | | | | | | | | | | | | | control (This used to be ctdb commit f8d97f8b56f0af83a514ec0364eb915e2d5ea2d7)
| * | recover.sh test script that build a few database and populates them with Ronnie Sahlberg2007-05-021-0/+49
| | | | | | | | | | | | | | | | | | a record then performs a recovery which merges all records onto node 0 (This used to be ctdb commit 54a072deb40d8d4a4a9e35bfde0eec3c867211d0)
| * | add a recover test change alignment for the pull/push db structuresRonnie Sahlberg2007-05-026-63/+214
| | | | | | | | | | | | (This used to be ctdb commit 0eb45623ca103e69765ed577ae02e7f8ca777e37)
| * | discard REQ/REPLY DMASTER when generation id is wrong or when in Ronnie Sahlberg2007-05-021-6/+58
| | | | | | | | | | | | | | | | | | recovery mode (This used to be ctdb commit bfd6d430f22e38cff1d64510dc447cfbe1dab35f)
| * | remove sleep from the fetch testRonnie Sahlberg2007-05-023-1/+41
| | | | | | | | | | | | | | | | | | add a test script to start 4 daemons to test recovery (This used to be ctdb commit 09eab12b00934afa5159fc500faf6b07effb2804)
| * | add a control to create a databaseRonnie Sahlberg2007-05-023-0/+40
| | | | | | | | | | | | (This used to be ctdb commit 74e489c6737cc79537c7812ea82daafb1b363ec2)
| * | remove test code in the fetch test to keep the daemons running forever Ronnie Sahlberg2007-05-021-4/+0
| | | | | | | | | | | | | | | | | | (so one has lots of tiume to play with ctdb_control) (This used to be ctdb commit 8fbaf82a7b3f0e62c887e91731ad8c659122c785)
* | | fixed a memory leak in the ctdb_control codeAndrew Tridgell2007-05-031-1/+1
| | | | | | | | | | | | (This used to be ctdb commit 70aa77a66bb5f16c93ecb122b92a6e63f6343ab1)
* | | enabled built in popt if system doesn't have itAndrew Tridgell2007-05-034-7/+12
| |/ |/| | | | | (This used to be ctdb commit 30c8d69267a78e1d3dea0fcc936ee2939bb7a373)
* | added a builtin fetch function to support samba3 unlocked fetchAndrew Tridgell2007-05-024-17/+24
| | | | | | | | (This used to be ctdb commit 8c57a8355a94a7d714b9bec98533bc40a2bc4684)
* | nicer command parsing in ctdb_controlAndrew Tridgell2007-05-021-38/+32
| | | | | | | | (This used to be ctdb commit 440077ffabb4ce831004b36ac26bd2f8f9b41499)
* | nicer string handling in usageAndrew Tridgell2007-05-021-19/+20
| | | | | | | | (This used to be ctdb commit 8c568ada9b46132ebfa452def4f8ba3f11240532)
* | merged from ronnieAndrew Tridgell2007-05-0211-57/+923
|\| | | | | | | (This used to be ctdb commit 77255f93d432829387dc328b0ae726cc9cba8d68)
| * change the getnodemap control to a more consistent output for whether a Ronnie Sahlberg2007-05-021-3/+3
| | | | | | | | | | | | node is connected or not (This used to be ctdb commit 65c5fe53937a17e1fa6de5739cbd01b982dc49bb)
| * update some calls to ctdb_control() that were still using the old Ronnie Sahlberg2007-05-024-6/+4
| | | | | | | | | | | | | | | | | | | | | | | | signature (flags field) update some calls to ctdb_get_config() to use the new name ctdb_ctrl_get_config() change #include "talloc/talloc.h" to #include "lib/talloc/talloc.h" in lib/events/events.h (This used to be ctdb commit d2cdd87037b9f0c387228d7d4743da4869929c93)
| * merge with tridges tree to resolve all conflictsRonnie Sahlberg2007-05-0274-577/+4151
| |\ | |/ |/| | | (This used to be ctdb commit 0f7c6c580ef0de60af68fd22bce36c0c0b2515b0)
* | new files for updated events systemAndrew Tridgell2007-05-029-0/+2802
| | | | | | | | (This used to be ctdb commit 15d8308e5a0ce04351d70ac3dd25c7698931ebba)
* | merge latest versions of lib/replace, lib/talloc, lib/tdb and lib/events ↵Andrew Tridgell2007-05-0236-274/+588
| | | | | | | | | | | | into ctdb bzr tree (This used to be ctdb commit eaea8a9fa8d2f5e08f3af619fa1008a663f39053)
* | fixed a lib/events bug found by volkerAndrew Tridgell2007-05-021-3/+4
| | | | | | | | (This used to be ctdb commit 46cd984500cd77d295f059132b4892dbfbc2bcd3)
* | added a hopcount in ctdb_callAndrew Tridgell2007-05-016-3/+18
| | | | | | | | (This used to be ctdb commit 36d838801a2a2008c50322cdbfff65a308b1cd1a)
* | auto-determine listen address by attempting to bind to each address in the ↵Andrew Tridgell2007-05-0114-50/+149
| | | | | | | | | | | | cluster in turn (This used to be ctdb commit 2fab9f96df2e5b5c51c860fd65caf0e926a63e34)
* | added attach command in ctdb_controlAndrew Tridgell2007-04-303-3/+31
| | | | | | | | (This used to be ctdb commit 172ee33306be2ef5ce17a5b9d7fbcc1f265a1b0b)
* | changed the way set_call and attach are done so that you can safelyAndrew Tridgell2007-04-3015-170/+323
| | | | | | | | | | | | | | | | | | | | attach to databases after the protocol has started. The daemon broadcasts information on new databases to the other daemons. This also eliminates the need for the client to know about the hash between db name and db_id. (This used to be ctdb commit 3bad91a9d987d4c09fe3322eac23c2733660ad08)
* | don't use stderr here - rely on loggingAndrew Tridgell2007-04-302-2/+2
| | | | | | | | (This used to be ctdb commit a2a3b254b22dbaafc8c4934d99cc67d6ae4adbd1)
* | saner logfile codeAndrew Tridgell2007-04-298-4/+69
| | | | | | | | | | | | testing of ctdbd (This used to be ctdb commit 05789da5818f8b20f04779b0df5125914d9047f6)
* | yay! finally fixed the bug that volker, ronnie and I have been chasingAndrew Tridgell2007-04-299-72/+171
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | for 2 days. The main bug was in smbd, but there was a secondary (and more subtle) bug in ctdb that the bug in smbd exposed. When we get send a dmaster reply, we have to correctly update the dmaster in the recipient even if the original requst has timed out, otherwise ctdbd can get into a loop fighting over who will handle a key. This patch also cleans up the packet allocation, and makes ctdbd become a real daemon. (This used to be ctdb commit 59405e59ef522b97d8e20e4b14310a217141ac7c)
| * specify which node to perform recovery to when using the recovery Ronnie Sahlberg2007-05-021-4/+9
| | | | | | | | | | | | control (This used to be ctdb commit c67f8a1783ce6f5af9940d2e22847ddcd939763d)
| * fix a bug in pushdb control.Ronnie Sahlberg2007-05-021-1/+1
| | | | | | | | | | | | | | we should only write the pushed record if RSN of the new one if higher than the rsn of the existing one not the other way around (This used to be ctdb commit f535008c3755cf84acff7bc73ea05c0901e940ef)