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

Add support for incrementally persisting the active block in the peers bootstrapper as a snapshot #903

Merged
merged 19 commits into from
Sep 20, 2018
Merged
Prev Previous commit
Next Next commit
Remove commented out code and add comments
  • Loading branch information
Richard Artoul committed Sep 18, 2018

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit cedc702994a6fa5ec4d540baad467f900ba125c9
2 changes: 2 additions & 0 deletions src/dbnode/storage/bootstrap/bootstrapper/peers/source.go
Original file line number Diff line number Diff line change
@@ -467,6 +467,7 @@ func (s *peersSource) incrementalFlush(
// from memory AND the commit log bootstrapper is set before the peers bootstrapper
// in the bootstrappers configuration.
default:
// Should never happen
return fmt.Errorf("unknown FileSetFileType: %v", persistConfig.FileSetType)
}
}
@@ -821,6 +822,7 @@ func (s *peersSource) validateRunOpts(runOpts bootstrap.RunOptions) error {
persistConfig := runOpts.PersistConfig()
if persistConfig.FileSetType != persist.FileSetFlushType &&
persistConfig.FileSetType != persist.FileSetSnapshotType {
// Should never happen
return fmt.Errorf("unknown persist config fileset file type: %v", persistConfig.FileSetType)
}