这是indexloc提供的服务,不要输入任何密码
Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Conversation

@captncraig
Copy link
Contributor

No description provided.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why underscore here? Should it be a package, method on something, etc? Seems fishy...?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The whole naming is odd. I was trying to segregate the search methods, but there are too many now. I will probably segregate to data.Search.GetWhatever() with a nested interface.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dp.Timestamp-p.Timestamp - Check for Div by Zero?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, we already verified that p.timestamp < dp.Timestamp. therefore dp.Timestamp-p.Timestamp will always be greater than zero.

@captncraig captncraig merged commit 3e522b1 into master Oct 19, 2015
@captncraig captncraig deleted the persistLast branch October 19, 2015 18:46
@Dieterbe
Copy link
Contributor

so what exactly does this persist?

@captncraig
Copy link
Contributor Author

Pretty much so it survives restarts. This data is used to serve a host page on opserver, and kyle wanted it to be available fast. If it gets cleared on restarts, funny things happen.

I would argue that perhaps that endpoint should be served from opentsdb data, but I think there were good reasons against that. Perhaps @kylebrandt can refresh me.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants