-
Notifications
You must be signed in to change notification settings - Fork 257
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
rbd: Remove redundant LastSeen property from MirrorPeerSite struct #871
Conversation
d6e209a
to
d33686d
Compare
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.
lgtm.
I spoke to @ansiwen about this PR yesterday, I will give a few days for him to respond. |
d33686d
to
c4e0d82
Compare
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 I'm being dense this morning, but don't we need to call a function to convert from a time_t to a time.Time? I'm kinda surprised that this doesn't fail the tests, maybe someone can explain to me what magic is happening.
Ok, I see the issue. |
We have some not-mutually-exclusive options then:
Personally, I lean towards: dropping LastSeen from the struct, adding a line or two to the struct Doc comment explaining why there's no LastSeen, report the issue to ceph. I think it should be "safe" to drop the field for now because generally adding struct fields in the future is backwards compatible, so if LastSeen begins working someday we can add it back without much fuss while not bearing the costs of maintaing a non-functional field today. |
I fully agree, let's drop it, if we don't set it. |
I completely missed to notice the effect of this change behind.
I am also in agreement here. |
Removed the `LastSeen` property of MirrorPeerSite struct as it is not being set/updated anywhere by the ceph API. Fixes: ceph#870 Signed-off-by: Nikhil-Ladha <[email protected]>
c4e0d82
to
9f9c9c1
Compare
Made the suggested changes.
|
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.
lgtm, thanks.
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.
LGTM
Description:
Removed the
LastSeen
property of MirrorPeerSite struct as it is not being set/updated anywhere by the ceph API.Fixes: #870
Signed-off-by: Nikhil-Ladha [email protected]