diff options
| author | Ronnie Sahlberg <ronniesahlberg@gmail.com> | 2010-08-18 12:36:03 +1000 |
|---|---|---|
| committer | Ronnie Sahlberg <ronniesahlberg@gmail.com> | 2010-08-18 12:36:03 +1000 |
| commit | 5aa5f3e7bfe3d4d5f29da4ff674f1a2c20c1ecf5 (patch) | |
| tree | 9c2aa0a1e9e3aa5dc5f3a8675dc5b003992b086c /ctdb/include | |
| parent | 44ff99280620b1aac3e79bc92129a976c47fb86b (diff) | |
Remove the structure ctdb_control_tcp_vnn since this is identical to the structure ctdb_tcp_connection.
Add a new "ctdb deltickle" command to delete tickles from the database.
This can ONLY be used for tickles created by "ctdb addtickle".
Push any "addtickle/deltickle" updates to other nodes every TickleUpdateInterval seconds'
(This used to be ctdb commit acded034e2f0dcae4c2c9e54e16a001caf23caec)
Diffstat (limited to 'ctdb/include')
| -rw-r--r-- | ctdb/include/ctdb_private.h | 11 | ||||
| -rw-r--r-- | ctdb/include/ctdb_protocol.h | 1 |
2 files changed, 3 insertions, 9 deletions
diff --git a/ctdb/include/ctdb_private.h b/ctdb/include/ctdb_private.h index af271f4bfb..8166e1515c 100644 --- a/ctdb/include/ctdb_private.h +++ b/ctdb/include/ctdb_private.h @@ -46,6 +46,7 @@ extern pid_t ctdbd_pid; /* a tcp connection description + also used by tcp_add and tcp_remove controls */ struct ctdb_tcp_connection { ctdb_sock_addr src_addr; @@ -542,14 +543,6 @@ struct ctdb_control_gratious_arp { }; /* - struct for tcp_add and tcp_remove controls - */ -struct ctdb_control_tcp_vnn { - ctdb_sock_addr src; - ctdb_sock_addr dest; -}; - -/* persistent store control - update this record on all other nodes */ struct ctdb_control_persistent_store { @@ -1120,7 +1113,7 @@ int ctdb_takeover_run(struct ctdb_context *ctdb, struct ctdb_node_map *nodemap); int32_t ctdb_control_tcp_client(struct ctdb_context *ctdb, uint32_t client_id, TDB_DATA indata); -int32_t ctdb_control_tcp_add(struct ctdb_context *ctdb, TDB_DATA indata); +int32_t ctdb_control_tcp_add(struct ctdb_context *ctdb, TDB_DATA indata, bool tcp_update_needed); int32_t ctdb_control_tcp_remove(struct ctdb_context *ctdb, TDB_DATA indata); int32_t ctdb_control_startup(struct ctdb_context *ctdb, uint32_t vnn); int32_t ctdb_control_kill_tcp(struct ctdb_context *ctdb, TDB_DATA indata); diff --git a/ctdb/include/ctdb_protocol.h b/ctdb/include/ctdb_protocol.h index 7a5d32de15..99765d4093 100644 --- a/ctdb/include/ctdb_protocol.h +++ b/ctdb/include/ctdb_protocol.h @@ -329,6 +329,7 @@ enum ctdb_controls {CTDB_CONTROL_PROCESS_EXISTS = 0, CTDB_CONTROL_GET_PUBLIC_IP_INFO = 123, CTDB_CONTROL_GET_IFACES = 124, CTDB_CONTROL_SET_IFACE_LINK_STATE = 125, + CTDB_CONTROL_TCP_ADD_DELAYED_UPDATE = 126, }; /* |
