diff options
| author | Ronnie Sahlberg <sahlberg@ronnie> | 2007-09-04 14:36:52 +1000 |
|---|---|---|
| committer | Ronnie Sahlberg <sahlberg@ronnie> | 2007-09-04 14:36:52 +1000 |
| commit | cf45c5096c50394c3e82f0fcfb7afb9ad593dbdf (patch) | |
| tree | 890ec414186d52c2d026a56834437b35f93805e3 /ctdb/include | |
| parent | 3e6be59f617e8fc87e13144a81d091385db9beab (diff) | |
we cant have takeover_ctx hanging off ctdb since it is freed/recreated
everytime we release an ip.
this context is used to hold all resources needed when sending out
gratious arps and tcp tickles during ip takeover.
we hang it off the vnn structure that manages that particular ip address
instead so that we can have multiple ones going in parallell
this bug (or the same bug in different shape) has probably been in ctdb
for very very long but is likely to be hard to trigger
(This used to be ctdb commit c58db1cadaba253b2659573673b28c235ef7db76)
Diffstat (limited to 'ctdb/include')
| -rw-r--r-- | ctdb/include/ctdb_private.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ctdb/include/ctdb_private.h b/ctdb/include/ctdb_private.h index 23d8d9d320..fd366d8ce5 100644 --- a/ctdb/include/ctdb_private.h +++ b/ctdb/include/ctdb_private.h @@ -155,6 +155,9 @@ struct ctdb_vnn { /* whether we need to update the other nodes with changes to our list of connected clients */ bool tcp_update_needed; + + /* a context to hang sending gratious arp events off */ + TALLOC_CTX *takeover_ctx; }; struct ctdb_vnn_list { @@ -356,7 +359,6 @@ struct ctdb_context { void *saved_scheduler_param; struct _trbt_tree_t *server_ids; const char *event_script_dir; - TALLOC_CTX *takeover_ctx; }; struct ctdb_db_context { |
