Skip to content

Commit 89f889d

Browse files
bingwang-msrajkumar38
authored andcommitted
Flush RESTAPI db in fast-reboot shutdown path (sonic-net#2917)
* Flush RESTAPI db in fast-reboot shutdown path
1 parent d636957 commit 89f889d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scripts/fast-reboot

+5
Original file line numberDiff line numberDiff line change
@@ -793,6 +793,11 @@ for service in ${SERVICES_TO_STOP}; do
793793
sonic-db-cli FLEX_COUNTER_DB FLUSHDB > /dev/null
794794
fi
795795
796+
if [[ "$REBOOT_TYPE" = "fast-reboot" ]]; then
797+
# Flush RESTAP_DB in fast-reboot to avoid stale status
798+
sonic-db-cli RESTAPI_DB FLUSHDB > /dev/null
799+
fi
800+
796801
backup_database
797802
798803
fi

0 commit comments

Comments
 (0)