File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ function clear_fast_boot()
107
107
{
108
108
common_clear
109
109
110
- redis- cli -n 6 DEL " FAST_REBOOT|system" & > /dev/null || /bin/true
110
+ sonic-db- cli STATE_DB DEL " FAST_REBOOT|system" & > /dev/null || /bin/true
111
111
}
112
112
113
113
function clear_warm_boot()
@@ -208,7 +208,8 @@ function backup_database()
208
208
end
209
209
end
210
210
" 0 > /dev/null
211
- redis-cli save > /dev/null
211
+ sonic-db-cli SAVE > /dev/null
212
+ # TODO : need a script to copy all rdb files if there is multiple db instances config
212
213
docker cp database:/var/lib/redis/$REDIS_FILE $WARM_DIR
213
214
docker exec -i database rm /var/lib/redis/$REDIS_FILE
214
215
}
@@ -317,7 +318,7 @@ case "$REBOOT_TYPE" in
317
318
" fast-reboot" )
318
319
BOOT_TYPE_ARG=$REBOOT_TYPE
319
320
trap clear_fast_boot EXIT HUP INT QUIT TERM KILL ABRT ALRM
320
- redis- cli -n 6 SET " FAST_REBOOT|system" " 1" " EX" " 180" & > /dev/null
321
+ sonic-db- cli STATE_DB SET " FAST_REBOOT|system" " 1" " EX" " 180" & > /dev/null
321
322
;;
322
323
" warm-reboot" )
323
324
if [[ " $sonic_asic_type " == " mellanox" ]]; then
You can’t perform that action at this time.
0 commit comments