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

Json2wal #3147

Merged
merged 5 commits into from
Jan 18, 2019
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/json2wal/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func main() {
}
defer walFile.Close()

br := bufio.NewReader(f)
br := bufio.NewReaderSize(f, 70000)
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you please add a comment here explaining why this was necessary. Will help anyone who looks at it in the future :)

Would be even better if we could make it directly a function of the relevant variable - maybe 2 * types.BlockPartSizeBytes for safe keeping :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sure, I should have done it. :)

dec := cs.NewWALEncoder(walFile)

for {
Expand Down