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

wal: atomically initialize wal directory #5325

Merged
merged 1 commit into from
May 12, 2016

Conversation

heyitsanthony
Copy link
Contributor

Fixes #5270

@xiang90
Copy link
Contributor

xiang90 commented May 11, 2016

LGTM

defer w.Close()

if meta, _, _, rerr := w.ReadAll(); rerr != nil || string(meta) != "abc" {
t.Fatalf("got error %v and meta %q, expected nil and %q", rerr, string(meta), "abc")
Copy link
Contributor

Choose a reason for hiding this comment

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

we don't need string( because format string is already %q?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

you're right-- will fix

@gyuho
Copy link
Contributor

gyuho commented May 11, 2016

LGTM. Thanks.

@heyitsanthony heyitsanthony force-pushed the fix-partial-wal-init branch from e6add51 to 1739133 Compare May 11, 2016 23:50
@heyitsanthony heyitsanthony merged commit 9acb7ab into etcd-io:master May 12, 2016
@heyitsanthony heyitsanthony deleted the fix-partial-wal-init branch May 12, 2016 01:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants