summaryrefslogtreecommitdiff
path: root/ctdb/protocol/protocol_debug.c
AgeCommit message (Collapse)AuthorFilesLines
2024-03-06ctdb: send a CTDB_SRVID_START_IPREALLOCATE message after ↵Vinit Agnihotri1-0/+2
CTDB_EVENT_START_IPREALLOCATE Event scripts run the "start_ipreallocate" hook in order to notice that some ip addresses in the cluster potentially changed. CTDB_SRVID_START_IPREALLOCATE gives C code a chance to get notified as well once the event scripts are finished. Signed-off-by: Vinit Agnihotri <vagnihotri@ddn.com> Reviewed-by: Martin Schwenke <mschwenke@ddn.com> Reviewed-by: Volker Lendecke <vl@samba.org>
2024-03-06ctdb-protocol: Add new control CTDB_CONTROL_START_IPREALLOCATEVinit Agnihotri1-0/+1
Signed-off-by: Vinit Agnihotri <vagnihotri@ddn.com> Reviewed-by: Martin Schwenke <mschwenke@ddn.com> Reviewed-by: Volker Lendecke <vl@samba.org>
2024-01-04ctdb: send a CTDB_SRVID_IPREALLOCATED message after CTDB_EVENT_IPREALLOCATEDStefan Metzmacher1-0/+2
Event scripts run the "ipreallocated" hook in order to notice that some ip addresses in the cluster potentially changed. CTDB_SRVID_IPREALLOCATED gives C code a chance to get notified as well once the event scripts are finished. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Martin Schwenke <martin@meltin.net>
2023-12-15ctdb: add/implement CTDB_CONTROL_TCP_CLIENT_PASSEDStefan Metzmacher1-0/+1
With multichannel a tcp connection is registered first with a temporary smbd process, that calls CTDB_CONTROL_TCP_CLIENT first and then passes the tcp connection to the longterm smbd that already handles all connections belonging to the specific client_guid. That smbd process calls CTDB_CONTROL_TCP_CLIENT again, but the 'tickle' information is already there. When the temporary smbd process exists/disconnects from ctdb or calls CTDB_CONTROL_TCP_CLIENT_DISCONNECTED, the 'tickle' information is removed, while the longterm smbd process still serves the tcp connection. BUG: https://bugzilla.samba.org/show_bug.cgi?id=15523 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Martin Schwenke <martin@meltin.net>
2023-12-15ctdb: add/implement CTDB_CONTROL_TCP_CLIENT_DISCONNECTEDStefan Metzmacher1-0/+1
With multichannel a ctdb connection from smbd may hold multiple tcp connections, which can be disconnected before the smbd process terminates the whole ctdb connection, so we a way to remove undo 'CTDB_CONTROL_TCP_CLIENT' again. BUG: https://bugzilla.samba.org/show_bug.cgi?id=15523 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Martin Schwenke <martin@meltin.net>
2021-09-09ctdb-protocol: Add marshalling for controls DISABLE_NODE/ENABLE_NODEMartin Schwenke1-0/+2
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14784 Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
2020-09-11ctdb-protocol: Drop marshalling functions for old-style database pull/pushMartin Schwenke1-2/+0
Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
2020-04-28ctdb-protocol: Add marshalling for control ECHO_DATAVolker Lendecke1-0/+1
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Martin Schwenke <martin@meltin.net>
2019-10-24ctdb-protocol: Add marshalling for control DB_VACUUMMartin Schwenke1-0/+1
Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
2019-10-24ctdb-protocol: Add marshalling for new control VACUUM_FETCHAmitay Isaacs1-0/+1
Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
2018-07-02ctdb-server: Rename CTDB_BROADCAST_VNNMAP -> CTDB_BROADCAST_ACTIVEMartin Schwenke1-2/+2
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>
2017-10-10ctdb-protocol: Add tunnel id prefix for testingAmitay Isaacs1-1/+5
Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
2017-10-10ctdb-protocol: Add protocol marshalling for CTDB_REQ_TUNNELAmitay Isaacs1-0/+47
Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
2017-10-10ctdb-protocol: Add protocol marshalling for tunnel controlsAmitay Isaacs1-0/+2
Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
2017-09-21ctdb-protocol: Add marshalling for control CHECK_PID_SRVIDAmitay Isaacs1-0/+1
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>
2017-08-30ctdb-protocol: Add marshalling for ctdb_req_keepaliveAmitay Isaacs1-0/+24
Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
2017-08-30ctdb-protocol: Fix marshalling for ctdb_req_headerAmitay Isaacs1-1/+2
Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
2017-06-29ctdb-protocol: Add marshalling for CTDB_CONTROL_DB_ATTACH_REPLICATED controlAmitay Isaacs1-0/+1
Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
2017-06-29ctdb-protocol: Add DB_OPEN_FLAGS control to debugAmitay Isaacs1-0/+1
Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
2016-06-08ctdb-protocol: Drop support for SET_RECLOCKMartin Schwenke1-1/+0
Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
2016-05-06ctdb-protocol: Drop unused CTDB_SRVID_TAKEOVER_RUN_RESPONSEMartin Schwenke1-2/+0
Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
2016-04-23ctdb-protocol: Define a range of SRVIDs used by the ctdb toolAmitay Isaacs1-3/+3
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>
2016-03-25ctdb-protocol: Add srvid for assigning banning creditsAmitay Isaacs1-0/+2
Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
2016-03-25ctdb-protocol: Add srvid for messages during recoveryAmitay Isaacs1-0/+3
Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
2016-03-25ctdb-protocol: Introduce variable for checking srvid prefixAmitay Isaacs1-6/+8
Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
2016-03-25ctdb-protocol: Add new controls DB_PULL and DB_PUSH_START/DB_PUSH_CONFIRMAmitay Isaacs1-0/+3
Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
2016-03-17ctdb-protocol: Add protocol debug routinesAmitay Isaacs1-0/+651
Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>