Skip to content

Commit

Permalink
[warm boot] syncd warm start could be individual warm start (#2147)
Browse files Browse the repository at this point in the history
Signed-off-by: Ying Xie <[email protected]>
  • Loading branch information
yxieca authored and lguohan committed Oct 16, 2018
1 parent 5f2b1a7 commit f3ab8cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion files/scripts/syncd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ function unlock_service_state_change()
function check_warm_boot()
{
SYSTEM_WARM_START=`/usr/bin/redis-cli -n 4 hget "WARM_RESTART|system" enable`
SERVICE_WARM_START=`/usr/bin/redis-cli -n 4 hget "WARM_RESTART|${SERVICE}" enable`
# SYSTEM_WARM_START could be empty, always make WARM_BOOT meaningful.
if [[ x"$SYSTEM_WARM_START" == x"true" ]]; then
if [[ x"$SYSTEM_WARM_START" == x"true" ]] || [[ x"$SERVICE_WARM_START" == x"true" ]]; then
WARM_BOOT="true"
else
WARM_BOOT="false"
Expand Down

0 comments on commit f3ab8cd

Please sign in to comment.