fix: [CLI] Fix redisReady for dragonfly

pull/9630/head
Jakub Onderka 2024-03-21 12:25:37 +01:00
parent 5bbdeb0ee6
commit e95b333096
1 changed files with 3 additions and 3 deletions

View File

@ -616,9 +616,9 @@ class AdminShell extends AppShell
try {
$redis = RedisTool::init();
for ($i = 0; $i < 10; $i++) {
$persistence = $redis->info('persistence');
if (isset($persistence['loading']) && $persistence['loading']) {
$this->out('Redis is still loading...');
$pong = $redis->ping();
if ($pong !== true) {
$this->out('Redis is still loading... ' . $pong);
sleep(1);
} else {
break;