summaryrefslogtreecommitdiffstats
path: root/ripd
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2018-11-26 19:47:22 +0100
committerRenato Westphal <renato@opensourcerouting.org>2018-11-26 19:47:35 +0100
commitf344c66ea358c151a218e986173e60bb0295e003 (patch)
tree77515eb03791559325a50336ad170cb6b8832cd2 /ripd
parentMerge pull request #3351 from chiragshah6/ospfv3_dev (diff)
downloadfrr-f344c66ea358c151a218e986173e60bb0295e003.tar.xz
frr-f344c66ea358c151a218e986173e60bb0295e003.zip
*: remove the configuration lock from all daemons
A while ago all FRR configuration commands were converted to use the QOBJ infrastructure to keep track of configuration objects. This means the configuration lock isn't necessary anymore because the QOBJ code detects when someones tries to edit a configuration object that was deleted and react accordingly (log an error and abort the command). The possibility of accessing dangling pointers doesn't exist anymore since vty->index was removed. Summary of the changes: * remove the configuration lock and the vty_config_lockless() function. * rename vty_config_unlock() to vty_config_exit() since we need to clean up a few things when exiting from the configuration mode. * rename vty_config_lock() to vty_config_enter() to remove code duplication that existed between the three different "configuration" commands (terminal, private and exclusive). Configuration commands converted to the new northbound model don't need the configuration lock either since the northbound API also detects when someone tries to edit a configuration object that doesn't exist anymore. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'ripd')
-rw-r--r--ripd/rip_main.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/ripd/rip_main.c b/ripd/rip_main.c
index 4ee5994a9..5db9c4b7e 100644
--- a/ripd/rip_main.c
+++ b/ripd/rip_main.c
@@ -165,8 +165,6 @@ int main(int argc, char **argv)
}
}
- vty_config_lockless();
-
/* Prepare master thread. */
master = frr_init();