-
Notifications
You must be signed in to change notification settings - Fork 638
CASSGO-6 Accept peers with empty rack #1895
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, left a few comments
host_source.go
Outdated
@@ -413,8 +414,9 @@ func (h *HostInfo) update(from *HostInfo) { | |||
if h.dataCenter == "" { | |||
h.dataCenter = from.dataCenter | |||
} | |||
if h.rack == "" { | |||
if h.missingRack || h.rack == "" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should remove the h.rack == ""
from here? If now we treat ""
as a valid rack.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I could see that, I was trying to handle filling in the rack if it was empty but since "" is valid I should remove it.
Looks good, don't forget to update commit message before merging |
This fixes apache#1706. Patch by James Hartig for CASSGO-6; reviewed by João Reis for CASSGO-6
This fixes #1706.