summaryrefslogtreecommitdiffstats
path: root/ctdb/include
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronniesahlberg@gmail.com>2009-12-02 13:41:04 +1100
committerRonnie Sahlberg <ronniesahlberg@gmail.com>2009-12-02 13:41:04 +1100
commit1c7de7a2ed0dea078367f301f5cd2467b466b7d9 (patch)
tree9fd3b5b51e9741009d2a5d0f68856fddfb892e4a /ctdb/include
parentbf27dc2d53b8d10d8714aff4deaa2e0902e32f68 (diff)
Add a double linked list to the ctdb_context to store a mapping between client pids and client structures.
Add the mapping to the list everytime we accept() a new client connection and set it up to remove in the destructor when the client structure is freed. (This used to be ctdb commit f75d379377f5d4abbff2576ddc5d58d91dc53bf4)
Diffstat (limited to 'ctdb/include')
-rw-r--r--ctdb/include/ctdb_private.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ctdb/include/ctdb_private.h b/ctdb/include/ctdb_private.h
index 9a3c3e83bd..5155260be4 100644
--- a/ctdb/include/ctdb_private.h
+++ b/ctdb/include/ctdb_private.h
@@ -459,6 +459,9 @@ struct ctdb_context {
struct ctdb_monitor_script_status_ctx *last_monitor_status_ctx;
TALLOC_CTX *banning_ctx;
+
+ /* mapping from pid to ctdb_client * */
+ struct ctdb_client_pid_list *client_pids;
};
struct ctdb_db_context {