summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * ctdb tool - replace fprintf with DEBUGMartin Schwenke2011-12-061-1/+1
| | | | | | | | | | | | | | | | It's the only one in the file. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit bf1174ef699b06485b36ee8ae70412be0759e142)
| * ctdb tool - short circuit most of the logic in main for non-daemon commandsMartin Schwenke2011-12-061-24/+22
| | | | | | | | | | | | | | | | This allows all that logic to be hacked a little more easily. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit f93ffeee7b9e9ca5dd116655bdc7f89fc987ed8a)
| * ctdb tool - commands that don't use the daemon can't take -n/--nodeMartin Schwenke2011-12-061-0/+4
| | | | | | | | | | | | | | | | It just doesn't make sense! Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit c4b72683eb046007fbc2e60b4a54bc91faf4cf7e)
| * ctdb tool - simplify main() by taking most code out of a loopMartin Schwenke2011-12-061-52/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Most of the action in main() happens inside a for loop and an if statement. This causes 2 levels of extra indent for the code and makes it harder to read. Instead, the current body of the loop is put below the loop and its corresponding failure check. To see how small this change really is, view with "diff -w". ;-) Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 8527396b7290cfc8378779631e91d2ae09e2a106)
| * Return the peer_pid properly to the callerRonnie Sahlberg2011-12-062-2/+2
| | | | | | | | (This used to be ctdb commit 0f15a2c65db8f8b4ac0d5ad2755b9aa3c2a8b279)
| * LibCTDB: Add support for the 'get interfaces' control and update the ctdb ↵Ronnie Sahlberg2011-12-066-20/+176
| | | | | | | | | | | | tool to use this interface (This used to be ctdb commit 77dc0c7351071243d9096d3607d7499c82f46ec0)
| * GNU/Hurd supportMathieu Parent2011-12-062-0/+369
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | CTDB has the following limitations on GNU Hurd: - The pid of a peer is not get from the socket [1]. As a consequence, the peer process is not killed when releasing IP [2]. - Gratuitous arp are not yet supported [3] - network interfaces are always considered present [4] [1]: ctdb_get_peer_pid() in common/system_gnu.c [2]: release_kill_clients() in server/ctdb_takeover.c [3]: ctdb_sys_send_arp() in common/system_gnu.c [4]: ctdb_sys_check_iface_exists() in common/system_gnu.c (This used to be ctdb commit 00212e5c7dd229e7f8975a165d5ab8875d4917cc)
| * Move platform-specific code to common/system_*Mathieu Parent2011-12-064-15/+29
| | | | | | | | | | | | This removes #ifdef AIX and ease the addition of new platforms. (This used to be ctdb commit 2fd1067a075fe0e4b2a36d4ea18af139d03f17bf)
| * Remove zero-length gnu_printf format string in ctdb_daemon.c (gcc warning)Mathieu Parent2011-12-061-0/+1
| | | | | | | | | | | | | | server/ctdbd.c: In function ‘main’: server/ctdb_daemon.c:943:7: warning: zero-length gnu_printf format string [-Wformat-zero-length] (This used to be ctdb commit e6d1dd3ec4a078e5f32bc52a4a9e4b7d9a2e2d16)
| * Fix ctdb-crash-cleanup sysconfig handlingMathieu Parent2011-12-061-2/+11
| | | | | | | | (This used to be ctdb commit 667b174d605646b53f4855e9aaf5f8ce4fdde532)
| * Fix the build that broke in 8281bb210858ed04992eacea7f6d02261e0fc1b1Ronnie Sahlberg2011-12-061-2/+2
| | | | | | | | | | | | | | The traverse control has changed wireformat so update also libctdb to use the correct version of the wire structure and compile (This used to be ctdb commit 08e06176feab1ec244496e62a916fbb77817239f)
| * traverse: fix traversing with empty records by adding a new (internal) ↵Michael Adam2011-12-035-7/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | control CTDB_CONTROL_TRAVERSE_START_EXT By this, the original CTDB_CONTROL_TRAVERSE_START control that is used by e.g. samba's smbstatus, is not changed, so that samba continues working without code change. The CTDB_CONTROL_TRAVERSE_START currently just adds the "withemptyrecords" flag to the state and processon on as CTDB_CONTROL_TRAVERSE_START_EXT. (This used to be ctdb commit 8281bb210858ed04992eacea7f6d02261e0fc1b1)
| * DOC: document the check_srvids debugging commandRonnie Sahlberg2011-11-303-500/+363
| | | | | | | | (This used to be ctdb commit 6489d0d9b8ec14c7764a1865618faf659800bcc3)
| * ctdb: use libctdb version of check-srvids callRonnie Sahlberg2011-11-301-16/+13
| | | | | | | | (This used to be ctdb commit 36105b7283df729946e0a2ed61a696a14221efa6)
| * LibCTDB: add support for the check-srvids controlRonnie Sahlberg2011-11-303-0/+131
| | | | | | | | (This used to be ctdb commit c32604fd0016de0df14845a2f222edaa3c52a4fa)
| * check_srvids: remove the <pnn> from the commandline so that we only specify ↵Ronnie Sahlberg2011-11-301-12/+9
| | | | | | | | | | | | | | | | the list of <srvids> Specifying the pnn can be done via '-n <pnn>' (This used to be ctdb commit e9250775f5a1234f27a1a62caa902d7b86194285)
| * Add "ctdb check_srvid"Volker Lendecke2011-11-301-0/+46
| | | | | | | | (This used to be ctdb commit 92a391a81d0697956b96e96e39bb1b9d13e18097)
| * Add CTDB_CONTROL_CHECK_SRVIDVolker Lendecke2011-11-304-0/+42
| | | | | | | | (This used to be ctdb commit ad64ef2c40a2a12b37dbf39142e95c6781c2fc3b)
| * DOC: describe the RecoverPDBBySeqNum tunableRonnie Sahlberg2011-11-303-406/+299
| | | | | | | | (This used to be ctdb commit 86d956170d4806065f1470fc44710c085c57f17a)
| * Recover Persistent database DB by DB and not record by recordRonnie Sahlberg2011-11-303-4/+126
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a new tunable that changes the mode how persistent databases are recovered. RecoveryPDBBySeqNum When set to 1, persistent databases will be recovered in whole from the node which has the highest "__db_sequence_number__" record. This record is managed by samba for those databases where we do persistent writes and have inter-record relations. For these databases we do not want the usual "blend records from all nodes based on individual record RSN" but instead a mode where we pick one instance of the persistent database. If no node was found with a "__db_sequence_number__" record at all, we fail back to the original "recover records independently based on record RSN". Some persistent databases do not contain record interrelations and as such does not contain this special record at all. (This used to be ctdb commit 502150c764298a9fa8c4d8aa445bf7d85d4ee9dc)
| * LibCTDB: add get persistent db seqnum controlRonnie Sahlberg2011-11-304-0/+137
| | | | | | | | (This used to be ctdb commit 6e96a62494bbb2c7b0682ebf0c2115dd2f44f7af)
| * DB Seqnum: must provide a ctdb_ltdb_header when calling ctdb_ltdb_fetch()Ronnie Sahlberg2011-11-301-1/+2
| | | | | | | | (This used to be ctdb commit 1fea9ef55a6a9d201ad1b49583451ac3e6b1c66d)
| * doc: commit generated ctdb.1 manpages after xml changeMichael Adam2011-11-292-77/+86
| | | | | | | | (This used to be ctdb commit 3b6ef3442f0b62d65ec0f9be67a2b1dbf7e4af67)
| * doc: document the "--print-recordflags" parameter to "ctdb"Michael Adam2011-11-291-0/+11
| | | | | | | | (This used to be ctdb commit 5b527e6127a649fa80dcf9a7599b22bcb7cd3640)
| * ctdb: add an option --print-recordflags to trigger printing record flags in ↵Michael Adam2011-11-293-9/+17
| | | | | | | | | | | | | | | | catdb and dumpdbbackup This changes the default behaviour to not print record flags. (This used to be ctdb commit 2d2ce07c51055d9400b22cd3c1fd682597cb921c)
| * doc: commit generated ctdb.1 manpages after xml changeMichael Adam2011-11-292-77/+85
| | | | | | | | (This used to be ctdb commit 0e26774f32d7ea0ce9d034c331730f5324f6b092)
| * doc: document the "--print-hash" parameter to "ctdb".Michael Adam2011-11-291-0/+10
| | | | | | | | (This used to be ctdb commit 998b7f4450026051867525d91c6d8dcbd2326ab5)
| * ctdb: add an option --print-hash to enable printing of record hashes when ↵Michael Adam2011-11-293-0/+10
| | | | | | | | | | | | dumping dbs (This used to be ctdb commit efc033c28ade97f9884794256d59a4553e052d5f)
| * doc: commit generated ctdb.1 manpages after xml changeMichael Adam2011-11-292-77/+84
| | | | | | | | (This used to be ctdb commit 7f46671fc912c969c5c87e50b77e2e3a7d6c8904)
| * doc: document the "--print-lmaster" parameter to "ctdb"Michael Adam2011-11-291-0/+9
| | | | | | | | (This used to be ctdb commit 7e7d86ac9b05f8b67414200adc8ac87cfccf26cf)
| * ctdb: add an option --print-lmaster to enable printing of lmaster in "ctdb ↵Michael Adam2011-11-293-0/+21
| | | | | | | | | | | | catdb" (This used to be ctdb commit 326f88ef622620cb9e0569c4497bc0e86124beaa)
| * doc: commit generated ctdb.1 manpages after xml changeMichael Adam2011-11-292-77/+85
| | | | | | | | (This used to be ctdb commit 6f8e7480dadf15d1639355fdb61d5bef025a0325)
| * doc: document the "--print-datasize" parameter to "ctdb"Michael Adam2011-11-291-0/+10
| | | | | | | | (This used to be ctdb commit 9e8045a5b0d8bd9ab2e0343b329de9f45b883531)
| * ctdb: add an option --print-datasize to only print datasize instead of ↵Michael Adam2011-11-293-7/+17
| | | | | | | | | | | | | | | | dumping data in db dumps Used in catdb, cattdb and dumpdbbackup. (This used to be ctdb commit dd866116041e71cbf91e7fd91edcc9501634051d)
| * doc: commit generated ctdb.1 manpages after xml changeMichael Adam2011-11-292-79/+90
| | | | | | | | (This used to be ctdb commit 079f12dfc1edeac9748af15f652f2f1a6ed35548)
| * doc: document the --print-emptyrecords switch in the "ctdb" manpage.Michael Adam2011-11-291-0/+13
| | | | | | | | (This used to be ctdb commit 7b4663dd2454b798841815044f898dead9b734e2)
| * ctdb: add an option --print-emptyrecords to enable printing of empty records ↵Michael Adam2011-11-293-8/+34
| | | | | | | | | | | | | | | | in dumping databases this option is used with the commands catdb, cattdb and dumpdbbackup. (This used to be ctdb commit 6ec68a2e667f66d2b194fe48cb75229a2777842e)
| * client: add version ctdb_traverse_ext() of ctdb_traverse() that can list ↵Michael Adam2011-11-291-7/+28
| | | | | | | | | | | | empty records. (This used to be ctdb commit 4ada4bfc4510886c5c7fcf49e09711b9d2dcb75d)
| * traverse: add a flag to enable transferring empty records in cluster wide ↵Michael Adam2011-11-294-1/+14
| | | | | | | | | | | | | | | | | | traverse This will be useful for also printing information about empty/deleted records in "ctdb catdb", e.g. for debugging vacuuming issues. (This used to be ctdb commit ddc5da3a0df7701934404192a0a0aa659a806acb)
| * recoverd: try to become the recovery master if we have the capability, but ↵Stefan Metzmacher2011-11-291-1/+22
| | | | | | | | | | | | | | | | | | | | | | the current master doesn't metze (cherry picked from commit 6ba8af28f8a8f79db65120a97d7157dcc5c7e083) Signed-off-by: Michael Adam <obnox@samba.org> (This used to be ctdb commit ccd67cf7f26713e695000d89d9ce8cfa78bfe00f)
| * This breaks the build since the recovery loop is different in masterRonnie Sahlberg2011-11-291-22/+1
| | | | | | | | | | | | | | | | | | | | | | | | compared to old 1.0 branches This must have been mistakenly applied to master when you intended to push for a different branch i guess. Revert "recoverd: try to become the recovery master if we have the capability, but the current master doesn't" This reverts commit a97d417aba85e901540147a4dff4794249442939. (This used to be ctdb commit c19cb751077b78cf4b6e28a1e3746d4ffedbfd68)
| * recoverd: try to become the recovery master if we have the capability, but ↵Stefan Metzmacher2011-11-261-1/+22
| | | | | | | | | | | | | | | | the current master doesn't metze (This used to be ctdb commit a97d417aba85e901540147a4dff4794249442939)
| * recoverd: let async_getcap_callback() also update ctdb->capabilitiesStefan Metzmacher2011-11-261-0/+4
| | | | | | | | | | | | metze (This used to be ctdb commit ef5b47d1183ee99c39ae63045a994d35255ac829)
| * vacuum: update (C) from vacuum rewriteMichael Adam2011-11-261-0/+2
| | | | | | | | (This used to be ctdb commit a95b524e57b861416f65baef7a0235bf7e394cef)
| * vacuum: write a big and up-to-date explaining comment for ctdb_vacuum_db()Michael Adam2011-11-261-5/+31
| | | | | | | | (This used to be ctdb commit 6b9d308985ef2363c62fde6340ad37d56f6d7702)
| * vacuum: fix a comment typo in vacuum_traverse()Michael Adam2011-11-261-1/+1
| | | | | | | | (This used to be ctdb commit 88ad1e75c686cd47aec18b0a8eb93c3b125f0e97)
| * vacuum: fix horrible indentation/whitespacing for ctdb_vacuum_event()Michael Adam2011-11-261-2/+2
| | | | | | | | (This used to be ctdb commit 0f070a65a322bd6d3240ca96a9e5c3633ef647bf)
| * vacuum: fix a comment typo in vacuum_traverse()Michael Adam2011-11-261-1/+1
| | | | | | | | (This used to be ctdb commit 39a5c0d8cca4ce5e8bc7055739a6377fb2dc36e0)
| * vacuum: fix an abundance of indentation white spaces in ctdb_vacuum_db()Michael Adam2011-11-261-2/+2
| | | | | | | | (This used to be ctdb commit 4ae564e415560cde7e4cd4c5a1d7699f3d49621b)
| * vacuum: rename "size" to "freelist_size" for clarityMichael Adam2011-11-261-8/+9
| | | | | | | | (This used to be ctdb commit 057023f5843c91d1cf8512f3675a01a119ea6157)