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

Skip backup directories created by influx_tsm #5471

Closed
wants to merge 1 commit into from

Conversation

joelegasse
Copy link
Contributor

This should correct the behavior seen in #5469. The databases and backups were getting indexed separately, but once the shards are loaded, the backup file seemed to win and took precedence. Regardless, we shouldn't have been loading the backup directories anyway.

@@ -310,6 +310,10 @@ func (s *Store) loadIndexes() error {
s.Logger.Printf("Skipping database dir: %s. Not a directory", db.Name())
continue
}
if strings.HasSuffix(db.Name(), ".bak") {
Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm. It's valid to create a db named foo.bak though.

@joelegasse
Copy link
Contributor Author

This is the wrong answer, the correct solution is in a separate pull request.

@joelegasse joelegasse closed this Jan 28, 2016
@joelegasse joelegasse deleted the jl-issue-5469 branch January 28, 2016 18:20
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.

2 participants