File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## Unreleased
4
+
5
+ - Fixed issue with Predis and ` SentinelReplication ` connection
6
+
3
7
## 2.5.3
4
8
5
9
- Added ` WP_REDIS_DISABLE_GROUP_FLUSH ` constant
Original file line number Diff line number Diff line change @@ -1147,8 +1147,8 @@ public function fetch_info() {
1147
1147
$ info = $ this ->is_predis ()
1148
1148
? $ this ->redis ->getClientBy ( 'id ' , $ connectionId )->info ()
1149
1149
: $ this ->redis ->info ( $ connectionId );
1150
- } else if ($ this ->is_predis () && $ this ->redis ->getConnection () instanceof Predis \Connection \Replication \MasterSlaveReplication ) {
1151
- $ info = $ this ->redis ->getClientBy ( ' role ' , ' master ' )->info ();
1150
+ } else if ($ this ->is_predis () && $ this ->redis ->getConnection () instanceof Predis \Connection \Replication \ReplicationInterface ) {
1151
+ $ info = $ this ->redis ->getMaster ( )->info ();
1152
1152
} else {
1153
1153
$ info = $ this ->redis ->info ();
1154
1154
}
You can’t perform that action at this time.
0 commit comments