mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #1552 from philips/fixup-wal-doc
wal: update the docs to show the optional metadata field
This commit is contained in:
commit
a535161a84
@ -22,7 +22,8 @@ A WAL is created at a particular directory and is made up of a number of
|
||||
discrete WAL files. Inside of each file the raft state and entries are appended
|
||||
to it with the Save method:
|
||||
|
||||
w, err := wal.Create("/var/lib/etcd")
|
||||
metadata := []byte{}
|
||||
w, err := wal.Create("/var/lib/etcd", metadata)
|
||||
...
|
||||
err := w.Save(s, ents)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user