File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -47,8 +47,8 @@ SYSTEM_WARM_START=`redis-cli -n 4 hget "WARM_RESTART|system" enable`
47
47
SWSS_WARM_START=` redis-cli -n 4 hget " WARM_RESTART|swss" enable`
48
48
if [[ " $SYSTEM_WARM_START " == " true" ]] || [[ " $SWSS_WARM_START " == " true" ]]; then
49
49
# We have to make sure db data has not been flushed.
50
- RESTART_COUNT =` redis-cli -n 6 hget " WARM_RESTART_TABLE|orchagent" restore_count`
51
- if [[ -n " $RESTART_COUNT " ]] && [[ " $RESTART_COUNT " != " 0" ]]; then
50
+ RESTORE_COUNT =` redis-cli -n 6 hget " WARM_RESTART_TABLE|orchagent" restore_count`
51
+ if [[ -n " $RESTORE_COUNT " ]] && [[ " $RESTORE_COUNT " != " 0" ]]; then
52
52
exit 0
53
53
fi
54
54
fi
Original file line number Diff line number Diff line change @@ -38,12 +38,12 @@ function check_warm_boot()
38
38
fi
39
39
}
40
40
41
- function validate_restart_count ()
41
+ function validate_restore_count ()
42
42
{
43
43
if [[ x" $WARM_BOOT " == x" true" ]]; then
44
- RESTART_COUNT =` /usr/bin/redis-cli -n 6 hget " WARM_RESTART_TABLE|orchagent" restore_count`
44
+ RESTORE_COUNT =` /usr/bin/redis-cli -n 6 hget " WARM_RESTART_TABLE|orchagent" restore_count`
45
45
# We have to make sure db data has not been flushed.
46
- if [[ -z " $RESTART_COUNT " ]]; then
46
+ if [[ -z " $RESTORE_COUNT " ]]; then
47
47
WARM_BOOT=" false"
48
48
fi
49
49
fi
@@ -69,7 +69,7 @@ start() {
69
69
70
70
wait_for_database_service
71
71
check_warm_boot
72
- validate_restart_count
72
+ validate_restore_count
73
73
74
74
debug " Warm boot flag: ${SERVICE} ${WARM_BOOT} ."
75
75
You can’t perform that action at this time.
0 commit comments