]> git.puffer.fish Git - mirror/frr.git/commit
lib: mgmtd: only clear pending for the in-progress command
authorChristian Hopps <chopps@labn.net>
Fri, 14 Jul 2023 20:13:54 +0000 (16:13 -0400)
committerChristian Hopps <chopps@labn.net>
Fri, 14 Jul 2023 22:24:30 +0000 (18:24 -0400)
commit76835fd55868b485b17c3f9091721335bd466cd8
treec4beaf3f0c69ddf8fa72b3b81ac0b025e1ee3f0c
parent88236d4e952fa05274d5464236a8df4727a6a1c7
lib: mgmtd: only clear pending for the in-progress command

The lock/unlocks are being done short-circuit so they are never pending;
however, the handling of the unlock notification was always resuming the command
if pending was set. In all cases pending is set for another command. For example
implicit commit locks then when notified its done unlocks which was clearing the
set-config pending flag and resuming that command incorrectly.

Signed-off-by: Christian Hopps <chopps@labn.net>
lib/mgmt_fe_client.c
lib/mgmt_fe_client.h
lib/vty.c
mgmtd/mgmt_fe_adapter.c
vtysh/vtysh.c