Skip to content
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

Single Server #5994

Merged
merged 14 commits into from Mar 14, 2016
Merged

Single Server #5994

merged 14 commits into from Mar 14, 2016

Conversation

benbjohnson
Copy link
Contributor

  • CHANGELOG.md updated
  • Rebased/mergable
  • Tests pass
  • Sign CLA (if not already signed)

benbjohnson and others added 5 commits March 11, 2016 12:27
This commit moves the `tsdb.Store.ExpandSources()` function onto
the `influxql.IteratorCreator` and provides support for issuing
source expansion across a cluster.
@@ -330,7 +330,7 @@ func (bp *batchpoints) SetRetentionPolicy(rp string) {

// Point represents a single data point
type Point struct {
pt models.Point
Copy link
Contributor

Choose a reason for hiding this comment

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

Why this change? pt was intentionally not exported for v2 client I believe.

Copy link
Contributor

Choose a reason for hiding this comment

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

This was me. I needed this so I could easily create client.Point from an existing models.Point. The current NewPoint function relies on all the separate aspects of a point, which seemed clunky for the way I wanted to use the client.

Copy link
Contributor

Choose a reason for hiding this comment

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

The problem is that the v2 client was intended to have points be immutable. Exporting the underlying Point defeats the purpose of that.

What about adding a function like:

NewPointFrom(pt models.Point) {
  return &Point{pt:pt}
}

Copy link
Contributor

Choose a reason for hiding this comment

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

OK will do!

@jwilder
Copy link
Contributor

jwilder commented Mar 14, 2016

👍

2 similar comments
@dgnorton
Copy link
Contributor

+1

@benbjohnson
Copy link
Contributor Author

👍

corylanou added a commit that referenced this pull request Mar 14, 2016
@corylanou corylanou merged commit ba6a95e into master Mar 14, 2016
@toddboom
Copy link
Contributor

💥

@mark-rushakoff mark-rushakoff deleted the single-server-lite branch March 24, 2016 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants