That's not what I mean at all.
I think we want to do select db on a redis master(slave) but not on redis sentinel try_hosts. And both the function try_hosts and connect_via_sentinel called funciton connect_to_host, but only connect_via_sentinel need to select, try_hosts no need to select db.This I mean.
That's not what I mean at all. I think we want to do
select
db on a redis master(slave) but not on redis sentineltry_hosts
. And both the functiontry_hosts
andconnect_via_sentinel
called funcitonconnect_to_host
, but onlyconnect_via_sentinel
need to select,try_hosts
no need toselect
db.This I mean.