1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

3988 Commits

Author SHA1 Message Date
Mathieu Parent
956f06f3ae Fix ctdb-crash-cleanup sysconfig handling
(This used to be ctdb commit 667b174d605646b53f4855e9aaf5f8ce4fdde532)
2011-12-06 11:55:46 +11:00
Ronnie Sahlberg
27a0414a5d Fix the build that broke in 8281bb210858ed04992eacea7f6d02261e0fc1b1
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)
2011-12-06 11:29:49 +11:00
Michael Adam
ad0de5494e traverse: fix traversing with empty records by adding a new (internal) 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)
2011-12-03 02:15:30 +01:00
Ronnie Sahlberg
e15df55b5e DOC: document the check_srvids debugging command
(This used to be ctdb commit 6489d0d9b8ec14c7764a1865618faf659800bcc3)
2011-11-30 10:05:59 +11:00
Ronnie Sahlberg
7d31c64c1c ctdb: use libctdb version of check-srvids call
(This used to be ctdb commit 36105b7283df729946e0a2ed61a696a14221efa6)
2011-11-30 10:00:27 +11:00
Ronnie Sahlberg
11f3c947e6 LibCTDB: add support for the check-srvids control
(This used to be ctdb commit c32604fd0016de0df14845a2f222edaa3c52a4fa)
2011-11-30 10:00:07 +11:00
Ronnie Sahlberg
5a1e8df451 check_srvids: remove the <pnn> from the commandline so that we only specify the list of <srvids>
Specifying the pnn can be done via '-n <pnn>'

(This used to be ctdb commit e9250775f5a1234f27a1a62caa902d7b86194285)
2011-11-30 09:50:12 +11:00
Volker Lendecke
6f657dadd3 Add "ctdb check_srvid"
(This used to be ctdb commit 92a391a81d0697956b96e96e39bb1b9d13e18097)
2011-11-30 09:02:26 +11:00
Volker Lendecke
5a1da0ac55 Add CTDB_CONTROL_CHECK_SRVID
(This used to be ctdb commit ad64ef2c40a2a12b37dbf39142e95c6781c2fc3b)
2011-11-30 09:02:26 +11:00
Ronnie Sahlberg
940e9cb7a7 DOC: describe the RecoverPDBBySeqNum tunable
(This used to be ctdb commit 86d956170d4806065f1470fc44710c085c57f17a)
2011-11-30 08:59:03 +11:00
Ronnie Sahlberg
0420449a6c Recover Persistent database DB by DB and not record by record
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)
2011-11-30 08:48:23 +11:00
Ronnie Sahlberg
3cbff2edd8 LibCTDB: add get persistent db seqnum control
(This used to be ctdb commit 6e96a62494bbb2c7b0682ebf0c2115dd2f44f7af)
2011-11-30 08:48:14 +11:00
Ronnie Sahlberg
3e2c40c590 DB Seqnum: must provide a ctdb_ltdb_header when calling ctdb_ltdb_fetch()
(This used to be ctdb commit 1fea9ef55a6a9d201ad1b49583451ac3e6b1c66d)
2011-11-30 08:48:04 +11:00
Michael Adam
3efb3c74ed doc: commit generated ctdb.1 manpages after xml change
(This used to be ctdb commit 3b6ef3442f0b62d65ec0f9be67a2b1dbf7e4af67)
2011-11-29 13:43:35 +01:00
Michael Adam
ad811952f1 doc: document the "--print-recordflags" parameter to "ctdb"
(This used to be ctdb commit 5b527e6127a649fa80dcf9a7599b22bcb7cd3640)
2011-11-29 13:43:35 +01:00
Michael Adam
31d62794fe ctdb: add an option --print-recordflags to trigger printing record flags in catdb and dumpdbbackup
This changes the default behaviour to not print record flags.

(This used to be ctdb commit 2d2ce07c51055d9400b22cd3c1fd682597cb921c)
2011-11-29 13:43:35 +01:00
Michael Adam
8fe8e277d9 doc: commit generated ctdb.1 manpages after xml change
(This used to be ctdb commit 0e26774f32d7ea0ce9d034c331730f5324f6b092)
2011-11-29 13:43:34 +01:00
Michael Adam
2386830acc doc: document the "--print-hash" parameter to "ctdb".
(This used to be ctdb commit 998b7f4450026051867525d91c6d8dcbd2326ab5)
2011-11-29 13:43:34 +01:00
Michael Adam
e6923904e8 ctdb: add an option --print-hash to enable printing of record hashes when dumping dbs
(This used to be ctdb commit efc033c28ade97f9884794256d59a4553e052d5f)
2011-11-29 13:43:34 +01:00
Michael Adam
290559e53d doc: commit generated ctdb.1 manpages after xml change
(This used to be ctdb commit 7f46671fc912c969c5c87e50b77e2e3a7d6c8904)
2011-11-29 13:43:33 +01:00
Michael Adam
072ba306b7 doc: document the "--print-lmaster" parameter to "ctdb"
(This used to be ctdb commit 7e7d86ac9b05f8b67414200adc8ac87cfccf26cf)
2011-11-29 13:43:33 +01:00
Michael Adam
86cd78efee ctdb: add an option --print-lmaster to enable printing of lmaster in "ctdb catdb"
(This used to be ctdb commit 326f88ef622620cb9e0569c4497bc0e86124beaa)
2011-11-29 13:43:33 +01:00
Michael Adam
239ae605e3 doc: commit generated ctdb.1 manpages after xml change
(This used to be ctdb commit 6f8e7480dadf15d1639355fdb61d5bef025a0325)
2011-11-29 13:43:33 +01:00
Michael Adam
e435fe76a3 doc: document the "--print-datasize" parameter to "ctdb"
(This used to be ctdb commit 9e8045a5b0d8bd9ab2e0343b329de9f45b883531)
2011-11-29 13:43:32 +01:00
Michael Adam
dc98c12ac9 ctdb: add an option --print-datasize to only print datasize instead of dumping data in db dumps
Used in catdb, cattdb and dumpdbbackup.

(This used to be ctdb commit dd866116041e71cbf91e7fd91edcc9501634051d)
2011-11-29 13:43:32 +01:00
Michael Adam
1dfdb9d887 doc: commit generated ctdb.1 manpages after xml change
(This used to be ctdb commit 079f12dfc1edeac9748af15f652f2f1a6ed35548)
2011-11-29 13:43:32 +01:00
Michael Adam
ebfc6cece2 doc: document the --print-emptyrecords switch in the "ctdb" manpage.
(This used to be ctdb commit 7b4663dd2454b798841815044f898dead9b734e2)
2011-11-29 13:43:32 +01:00
Michael Adam
1fcc7651f4 ctdb: add an option --print-emptyrecords to enable printing of empty records in dumping databases
this option is used with the commands catdb, cattdb and dumpdbbackup.

(This used to be ctdb commit 6ec68a2e667f66d2b194fe48cb75229a2777842e)
2011-11-29 10:30:24 +01:00
Michael Adam
554d68df60 client: add version ctdb_traverse_ext() of ctdb_traverse() that can list empty records.
(This used to be ctdb commit 4ada4bfc4510886c5c7fcf49e09711b9d2dcb75d)
2011-11-29 10:30:24 +01:00
Michael Adam
1a31c84348 traverse: add a flag to enable transferring empty records in cluster wide 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)
2011-11-29 10:30:24 +01:00
Stefan Metzmacher
3aa5c979f3 recoverd: try to become the recovery master if we have the capability, but 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)
2011-11-29 10:28:52 +01:00
Ronnie Sahlberg
b18a22b820 This breaks the build since the recovery loop is different in master
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)
2011-11-29 14:38:02 +11:00
Stefan Metzmacher
b02b55bd12 recoverd: try to become the recovery master if we have the capability, but the current master doesn't
metze

(This used to be ctdb commit a97d417aba85e901540147a4dff4794249442939)
2011-11-26 23:47:00 +01:00
Stefan Metzmacher
7a962685d3 recoverd: let async_getcap_callback() also update ctdb->capabilities
metze

(This used to be ctdb commit ef5b47d1183ee99c39ae63045a994d35255ac829)
2011-11-26 23:30:33 +01:00
Michael Adam
edc6067339 vacuum: update (C) from vacuum rewrite
(This used to be ctdb commit a95b524e57b861416f65baef7a0235bf7e394cef)
2011-11-26 01:10:09 +01:00
Michael Adam
0c1e98c9b0 vacuum: write a big and up-to-date explaining comment for ctdb_vacuum_db()
(This used to be ctdb commit 6b9d308985ef2363c62fde6340ad37d56f6d7702)
2011-11-26 00:34:57 +01:00
Michael Adam
a4988be457 vacuum: fix a comment typo in vacuum_traverse()
(This used to be ctdb commit 88ad1e75c686cd47aec18b0a8eb93c3b125f0e97)
2011-11-26 00:34:57 +01:00
Michael Adam
f14b730adb vacuum: fix horrible indentation/whitespacing for ctdb_vacuum_event()
(This used to be ctdb commit 0f070a65a322bd6d3240ca96a9e5c3633ef647bf)
2011-11-26 00:34:57 +01:00
Michael Adam
ac2bf0ebf4 vacuum: fix a comment typo in vacuum_traverse()
(This used to be ctdb commit 39a5c0d8cca4ce5e8bc7055739a6377fb2dc36e0)
2011-11-26 00:34:56 +01:00
Michael Adam
586d8f6883 vacuum: fix an abundance of indentation white spaces in ctdb_vacuum_db()
(This used to be ctdb commit 4ae564e415560cde7e4cd4c5a1d7699f3d49621b)
2011-11-26 00:34:56 +01:00
Michael Adam
018095b64d vacuum: rename "size" to "freelist_size" for clarity
(This used to be ctdb commit 057023f5843c91d1cf8512f3675a01a119ea6157)
2011-11-26 00:34:56 +01:00
Michael Adam
a46e1d9d2c build: add target libctdb.so.0 and symlink libctdb.so
(This used to be ctdb commit 66af6659eaffaeafbfa58779162aabe915d1c50f)
2011-11-26 00:34:56 +01:00
Michael Adam
0f0250c2d0 build: add socket_wrapper objects to test binaries
(This used to be ctdb commit 7d4809ba343114e435830c7c1ab047dc4ce5ff0e)
2011-11-26 00:34:55 +01:00
Michael Adam
0ad39b733a build: add option --enable-socket-wrapper to build binaries with socket wrapper support
(This used to be ctdb commit 8d65d7f399ba2e6a4162eed5e84a58c7cb024187)
2011-11-26 00:34:55 +01:00
Michael Adam
b859e8874c add socket_wrapper from samba
(This used to be ctdb commit 99ce8a9de648babdfb1b1ea0219ee184c9718048)
2011-11-26 00:34:55 +01:00
Andreas Schneider
4b32457822 libutil: Remove obsolete signal type cast.
(This used to be ctdb commit 8dd377b6a4d188af086f9a5b41a1b48e44eda6f3)
2011-11-26 00:34:55 +01:00
Michael Adam
0f807f76c0 build: add libreplace network checks to configure
(This used to be ctdb commit 5e45a176031e973e97450296c28ddfb0a779e00b)
2011-11-26 00:34:54 +01:00
Michael Adam
2c0abf2dcf update lib/replace to current upstream version (samba master)
(This used to be ctdb commit 17bcffab19fdbb435b4745ff90c327342bbbf0f8)
2011-11-26 00:34:54 +01:00
Michael Adam
5d94dff27e system_linux: correctly cast sockaddr_in6 to sockaddr for sendto() in ctdb_sys_send_tcp()
(This used to be ctdb commit 11bebd5367102fcd02b17c44ac87bf50d4c68785)
2011-11-26 00:34:54 +01:00
Michael Adam
d9516a8bf9 system_linux: correctly cast sockaddr_in to sockaddr in ctdb_sys_send_tcp()
(This used to be ctdb commit cc60df5a3edebfdf50fcd22ebfaad35736f90379)
2011-11-26 00:34:54 +01:00