Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #33797 [Cache] Fixed Redis Sentinel usage when only one Sentinel …
…specified (Rohaq) This PR was merged into the 4.4 branch. Discussion ---------- [Cache] Fixed Redis Sentinel usage when only one Sentinel specified Added check for $params['redis_sentinel'] to line 274, as by converting the array of hosts to a single host configuration (as you might in a test environment), this causes the class to initialise incorrectly. | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #33796 | License | MIT | Doc PR | As from Issue #33796 In a Redis Sentinel setup, if only a single Redis Sentinel, or multiple Sentinels with the same host/port are specified (as we're currently doing in a test environment), then the call to `setSentinelTimeout` in `RedisTrait.php` throws an exception, as the wrong interface appears to be initialised as a result. Adding a check for the `redis_sentinel` parameter, as was done with a check for the `redis_cluster` parameter, avoids this, and the Redis Client is initialised correctly. Commits ------- 13233fc Fixed Redis Sentinel usage when only one Sentinel specified
- Loading branch information