Skip to content

Commit 04176f4

Browse files
authored
Fetch Redis server info for sentinel replicated connections (#544)
1 parent bd85288 commit 04176f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

includes/object-cache.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1148,7 +1148,7 @@ public function fetch_info() {
11481148
? $this->redis->getClientBy( 'id', $connectionId )->info()
11491149
: $this->redis->info( $connectionId );
11501150
} else if ($this->is_predis() && $this->redis->getConnection() instanceof Predis\Connection\Replication\ReplicationInterface) {
1151-
$info = $this->redis->getClientBy( 'role' , 'master' )->info();
1151+
$info = $this->redis->getMaster()->info();
11521152
} else {
11531153
$info = $this->redis->info();
11541154
}

0 commit comments

Comments
 (0)