-
Notifications
You must be signed in to change notification settings - Fork 2.4k
[BUG] FailoverClusterClient ignore DB option #3339
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@khasanovbi thank you for reporting, as you can see from Line 20 in d863956
|
Yes, but this is a valid Redis configuration. |
@khasanovbi I understand your use case, but under the hood the Line 46 in 9762559
cn.Select yourself:
Feel free to close this if you are satisfied with the workaround. |
Ok, thank you for workaround, perhaps this should then be specified in the documentation? |
I tried such workaround, but it try to send select command to sentinel, instead of redis instance.
Maybe we could add SentinelDialer, OnSentinelConnect fields to FailoverOptions to distinguish such connections |
Hm, correct, the sentinel client will inherit the same callback. I assume you can simply check if the |
@khasanovbi I will close this issue for now, feel free to reopen if the solution doesn't work for you and you would like to discuss a different approach. |
FailoverClusterClient ignore DB from config
Expected Behavior
FailoverClusterClient use DB from FailoverOptions
Current Behavior
FailoverClusterClient use default DB: 0 option
The text was updated successfully, but these errors were encountered: