From c0b39eaad75374d033328c0c1838ee24c87fec8b Mon Sep 17 00:00:00 2001 From: Jipan Yang Date: Tue, 12 Feb 2019 14:23:09 -0800 Subject: [PATCH] Move warm_restart enable/disable config to stateDB WARM_RESTART_ENABLE_TABLE (#418) Signed-off-by: Jipan Yang --- syncd/scripts/syncd_init_common.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/syncd/scripts/syncd_init_common.sh b/syncd/scripts/syncd_init_common.sh index b76c9ec80710..b78a3ab18f1b 100755 --- a/syncd/scripts/syncd_init_common.sh +++ b/syncd/scripts/syncd_init_common.sh @@ -46,8 +46,8 @@ function check_warm_boot() { # FIXME: if we want to continue start option approach, then we need to add # code here to support redis database query. - # 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=`/usr/bin/redis-cli -n 6 hget "WARM_RESTART_ENABLE_TABLE|system" enable` + # SERVICE_WARM_START=`/usr/bin/redis-cli -n 6 hget "WARM_RESTART_ENABLE_TABLE|${SERVICE}" enable` # SYSTEM_WARM_START could be empty, always make WARM_BOOT meaningful. # if [[ x"$SYSTEM_WARM_START" == x"true" ]] || [[ x"$SERVICE_WARM_START" == x"true" ]]; then # WARM_BOOT="true"