summaryrefslogtreecommitdiff
path: root/ctdb/protocol/protocol.h
Commit message (Collapse)AuthorAgeFilesLines
* ctdb-protocol: Mark RECEIVE_RECORDS control obsoleteAmitay Isaacs2018-10-091-1/+1
| | | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=13641 Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net> (cherry picked from commit 81dae71fa74bfd83a5701e4841b5a0a13cbe87a1)
* ctdb-server: Rename CTDB_BROADCAST_VNNMAP -> CTDB_BROADCAST_ACTIVEMartin Schwenke2018-07-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | This broadcast is misnamed. Both places where this type of broadcast is used expect the broadcast to go to all active nodes. Make the corresponding change to the semantics in the daemon by sending to all active nodes. There is a mismatch between the ideas of VNN map and active nodes. A node that is not in the VNN map but is active can still host database records. These were the same until the LMASTER capability was introduced and then the logic was not updated. The only place where the VNN map is relevant is when finding the location master of a record in the migration code. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13499 Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com> (cherry picked from commit 36938bfdd075a174daecb466085702adfe6a6c09)
* ctdb-protocol: Add tunnel id prefix for testingAmitay Isaacs2017-10-101-0/+2
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-protocol: Add req_tunnel counts to ctdb statisticsAmitay Isaacs2017-10-101-0/+2
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-protocol: Add controls to register/deregister tunnelsAmitay Isaacs2017-10-101-0/+2
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-protocol: Add REQ_TUNNEL packet typeAmitay Isaacs2017-10-101-0/+11
| | | | | | | This allows to tunnel new protocols using ctdb transport. Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-protocol: Add new control CTDB_CONTROL_CHECK_PID_SRVIDAmitay Isaacs2017-09-211-0/+7
| | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=13042 Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-protocol: Add new data structure ctdb_connection_listMartin Schwenke2017-09-191-0/+5
| | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-protocol: Add server and client aliases in ctdb_connectionMartin Schwenke2017-09-191-2/+8
| | | | | | | | The current code is ambiguous in its use of src and dst. This allows new code to use server and client for clarity. Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-daemon: Drop monitoring modeMartin Schwenke2017-09-141-3/+0
| | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-daemon: Mark monitoring controls obsoleteMartin Schwenke2017-09-141-3/+3
| | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-protocol: Drop struct ctdb_event_headerAmitay Isaacs2017-09-011-5/+0
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-protocol: Replace ctdb_event_header with sock_packet_headerAmitay Isaacs2017-09-011-2/+2
| | | | | | | | | This removes the static declaration and adds prototype declarations of ctdb_event_header marshalling functions to avoid compiler warnings. These functions will be removed. Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-protocol: Add a generic packet headerAmitay Isaacs2017-09-011-0/+9
| | | | | | | | This will avoid duplication when new daemons (and new client-server protocols) are created out of the main ctdb daemon. Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-protocol: Drop unused protocol data structuresAmitay Isaacs2017-08-141-12/+0
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-protocol: Mark CTDB_CONTROL_CHECK_SRVIDS obsoleteAmitay Isaacs2017-08-141-1/+1
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-protocol: Add new control CTDB_CONTROL_DB_ATTACH_REPLICATEDAmitay Isaacs2017-06-291-0/+1
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-protocol: Add CTDB_DB_FLAGS_REPLICATED for new type of databaseAmitay Isaacs2017-06-291-0/+1
| | | | | | | | | | | persistent: replicated and permanent volatile: distributed and temporary replicated: replicated and temporary This type of database will be used by CTDB for storing it's state. Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-protocol: Add new control to get database open flagsAmitay Isaacs2017-06-261-0/+2
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-protocol: Allocate SRVID range for ctdb clientAmitay Isaacs2017-06-071-1/+7
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-daemon: Add AllowMixedVersions tunableAmitay Isaacs2017-05-241-0/+1
| | | | | | | | | | This allows to mix CTDB major versions in a single cluster. Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net> Autobuild-User(master): Amitay Isaacs <amitay@samba.org> Autobuild-Date(master): Wed May 24 21:06:28 CEST 2017 on sn-devel-144
* ctdb-daemon: Do not allow mixed ctdb versions in a clusterAmitay Isaacs2017-05-241-0/+6
| | | | | | | | Extend CTDB_REQ_KEEPALIVE packet to include version and uptime. If CTDB versions do not match shutdown ctdb. Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-takeover: IPAllocAlgorithm replaces LCP2PublicIPs, DeterministicIPsMartin Schwenke2016-12-191-0/+1
| | | | | | | | | | | Introduce a single new tunable IPAllocAlgorithm to set the IP allocation algorithm. This defaults to 2 for LCP2 IP address allocation. Tunables LCP2PublicIPs and DeterministicIPs are obsolete. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-protocol: Move CTDB_PUBLIC_IP_FLAGS_ONLY_AVAILABLE to protocol.hMartin Schwenke2016-12-191-0/+2
| | | | | | | The protocol code needs it. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-protocol: Deprecate eventscript controlsAmitay Isaacs2016-12-181-4/+4
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-protocol: Drop marshaling for eventscript controlsAmitay Isaacs2016-12-181-3/+0
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-protocol: Add data types for eventd communicationAmitay Isaacs2016-12-181-0/+80
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-protocol: Deprecate global transaction controlsAmitay Isaacs2016-07-281-3/+3
| | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-protocol: Drop marshalling for global transaction controlsAmitay Isaacs2016-07-281-1/+0
| | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-protocol: Deprecate THAW controlAmitay Isaacs2016-07-281-1/+1
| | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-daemon: Use consistent naming for monitoring modeAmitay Isaacs2016-07-281-1/+1
| | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-daemon: Add QueueBufferSize tunableAmitay Isaacs2016-07-281-0/+1
| | | | | | | | | This controls the maximum size of data ctdb will read from sockets at a time. Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-protocol: Deprecate controls SET/GET_DB_PRIORITYAmitay Isaacs2016-07-251-2/+2
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-protocol: Drop marshalling code for set/get_db_priorityAmitay Isaacs2016-07-251-6/+0
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-protocol: Remove CTDB_NUM_DB_PRIORITIESAmitay Isaacs2016-07-251-2/+0
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-protocol: CTDB_CONTROL_SET_RECLOCK_FILE is obsoleteMartin Schwenke2016-06-081-1/+1
| | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-protocol: Drop support for SET_RECLOCKMartin Schwenke2016-06-081-1/+0
| | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-protocol: Drop unused CTDB_SRVID_TAKEOVER_RUN_RESPONSEMartin Schwenke2016-05-061-3/+0
| | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-protocol: Remove data structures for obsolete server_id controlsAmitay Isaacs2016-04-231-27/+4
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-protocol: Define a range of SRVIDs used by the ctdb toolAmitay Isaacs2016-04-231-5/+8
| | | | | | | Get rid of the range reserved for traversals since it's not used. Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-protocol: Remove unused CTDB_SRVID_PREFIXAmitay Isaacs2016-04-231-3/+0
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-daemon: Drop --lvs option and support for CTDB_CAP_LVSMartin Schwenke2016-04-151-2/+1
| | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com> Autobuild-User(master): Amitay Isaacs <amitay@samba.org> Autobuild-Date(master): Fri Apr 15 09:35:51 CEST 2016 on sn-devel-144
* ctdb-protocol: Drop killtcp protocol supportMartin Schwenke2016-04-011-1/+1
| | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-protocol: Add srvid for assigning banning creditsAmitay Isaacs2016-03-251-1/+4
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-protocol: Add new capabilityAmitay Isaacs2016-03-251-1/+3
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-protocol: Add srvid for messages during recoveryAmitay Isaacs2016-03-251-0/+3
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-protocol: Add new controls DB_PULL and DB_PUSH_START/DB_PUSH_CONFIRMAmitay Isaacs2016-03-251-0/+5
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-protocol: Add new data type ctdb_pulldb_ext for new controlAmitay Isaacs2016-03-251-0/+6
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-tunables: Add new tunable RecBufferSizeLimitAmitay Isaacs2016-03-251-0/+1
| | | | | | | | This will be used to limit the size of record buffer sent in newer controls for recovery and existing controls for vacuuming. Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb: NAT gateway capability and control to set it are obsoleteMartin Schwenke2016-01-271-3/+2
| | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com> Autobuild-User(master): Amitay Isaacs <amitay@samba.org> Autobuild-Date(master): Wed Jan 27 18:35:24 CET 2016 on sn-devel-144