Skip to content

Commit

Permalink
Fetch Redis server info for sentinel replicated connections (#544)
Browse files Browse the repository at this point in the history
  • Loading branch information
yatsukhnenko authored Aug 7, 2024
1 parent bd85288 commit 04176f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/object-cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -1148,7 +1148,7 @@ public function fetch_info() {
? $this->redis->getClientBy( 'id', $connectionId )->info()
: $this->redis->info( $connectionId );
} else if ($this->is_predis() && $this->redis->getConnection() instanceof Predis\Connection\Replication\ReplicationInterface) {
$info = $this->redis->getClientBy( 'role' , 'master' )->info();
$info = $this->redis->getMaster()->info();
} else {
$info = $this->redis->info();
}
Expand Down

0 comments on commit 04176f4

Please sign in to comment.