Skip to content

Commit c0b39ea

Browse files
jipanyangyxieca
authored andcommitted
Move warm_restart enable/disable config to stateDB WARM_RESTART_ENABLE_TABLE (sonic-net#418)
Signed-off-by: Jipan Yang <jipan.yang@alibaba-inc.com>
1 parent ab35dfa commit c0b39ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

syncd/scripts/syncd_init_common.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ function check_warm_boot()
4646
{
4747
# FIXME: if we want to continue start option approach, then we need to add
4848
# code here to support redis database query.
49-
# SYSTEM_WARM_START=`/usr/bin/redis-cli -n 4 hget "WARM_RESTART|system" enable`
50-
# SERVICE_WARM_START=`/usr/bin/redis-cli -n 4 hget "WARM_RESTART|${SERVICE}" enable`
49+
# SYSTEM_WARM_START=`/usr/bin/redis-cli -n 6 hget "WARM_RESTART_ENABLE_TABLE|system" enable`
50+
# SERVICE_WARM_START=`/usr/bin/redis-cli -n 6 hget "WARM_RESTART_ENABLE_TABLE|${SERVICE}" enable`
5151
# SYSTEM_WARM_START could be empty, always make WARM_BOOT meaningful.
5252
# if [[ x"$SYSTEM_WARM_START" == x"true" ]] || [[ x"$SERVICE_WARM_START" == x"true" ]]; then
5353
# WARM_BOOT="true"

0 commit comments

Comments
 (0)