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

Refactor backup & restore #2886

Merged
merged 1 commit into from
Jun 11, 2015
Merged

Conversation

benbjohnson
Copy link
Contributor

Overview

This pull request refactors the influxd backup and influxd restore commands to work with the new architecture. This involved adding additional protobuf support to the meta package to serialize the meta.Data tree and refactoring snapshots into the snapshots package and making them work with the new file layout.

@neonstalwart
Copy link
Contributor

fixes #2812

@benbjohnson
Copy link
Contributor Author

@neonstalwart Yes. Thanks for tagging the issue.

if path == "" {
return url.URL{}, "", fmt.Errorf("snapshot path required")
// Ensure that only one arg is specified.
if fs.NArg() == 0 {
Copy link
Contributor

Choose a reason for hiding this comment

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

Minor -- this could be combined into a single check, if the error message was "a single snapshot path is required". This is purely a style issue.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I went back and forth on it. I like the extra clarity. I don't have a terribly strong opinion about it though.

Copy link
Contributor

Choose a reason for hiding this comment

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

Keep it your way. All good here.

@otoolep
Copy link
Contributor

otoolep commented Jun 11, 2015

A lot here, took a look, but don't grok it all. I do have one specific question about a WaitGroup.

@benbjohnson benbjohnson force-pushed the backup-restore branch 2 times, most recently from 58bd109 to d3d6d73 Compare June 11, 2015 03:50
This commit updates the snapshot code as well as the "backup" and
"restore" command to work with the new architecture.
benbjohnson added a commit that referenced this pull request Jun 11, 2015
@benbjohnson benbjohnson merged commit cfe87d6 into influxdata:master Jun 11, 2015
@benbjohnson benbjohnson deleted the backup-restore branch June 11, 2015 04:08
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

3 participants