mirror of
https://github.com/predis/predis.git
synced 2026-09-03 22:36:44 +00:00
63cb150fc2
This is actually a temporary solution since we should be using a dedicated pipeline executor to handle the master/slave replication connection. Ideally we should stick with a slave if no write operations are present in the buffer, but forcing a switch to the master connection is the easiest solution for now and users can still create a new client instance from one of the slaves when they are sure that their pipelines contain read-only operations.