diff options
author | Martin Schwenke <martin@meltin.net> | 2018-02-06 12:00:31 +1100 |
---|---|---|
committer | Martin Schwenke <martins@samba.org> | 2018-03-01 19:39:14 +0100 |
commit | 0519c513adc7c6f024c50facfb8a963fedd3e1b7 (patch) | |
tree | a322351244209e6641df7d62dd009be7535cf39c /ctdb | |
parent | 61a0ae91611fef66cea4009a950736d3bc522961 (diff) | |
download | samba-0519c513adc7c6f024c50facfb8a963fedd3e1b7.tar.gz |
ctdb-scripts: Do not use ctdb_service_reconfigure() for policy routing
This is an unconditional reconfiguration so skip the unnecessary
logic.
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Diffstat (limited to 'ctdb')
-rwxr-xr-x | ctdb/config/events.d/13.per_ip_routing | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/ctdb/config/events.d/13.per_ip_routing b/ctdb/config/events.d/13.per_ip_routing index 4fff73b40e1..d8e02475dff 100755 --- a/ctdb/config/events.d/13.per_ip_routing +++ b/ctdb/config/events.d/13.per_ip_routing @@ -354,17 +354,6 @@ remove_bogus_routes () ###################################################################### -service_reconfigure () -{ - add_missing_routes "force" - remove_bogus_routes - - # flush our route cache - set_proc sys/net/ipv4/route/flush 1 -} - -###################################################################### - ctdb_check_args "$@" case "$1" in @@ -435,7 +424,13 @@ ipreallocated) ;; reconfigure) - ctdb_service_reconfigure + echo "Reconfiguring service \"${service_name}\"..." + + add_missing_routes "force" + remove_bogus_routes + + # flush our route cache + set_proc sys/net/ipv4/route/flush 1 ;; esac |