etcd-dump-logs: don't try to acquire wal file locks

can now dump logs from a running etcd instance
This commit is contained in:
Anthony Romano 2016-03-31 21:48:54 -07:00
parent 2f785015a5
commit 7fffd6ffd2

View File

@ -75,7 +75,7 @@ func main() {
fmt.Println("Start dupmping log entries from snapshot.")
}
w, err := wal.Open(walDir(*from), walsnap)
w, err := wal.OpenForRead(walDir(*from), walsnap)
if err != nil {
log.Fatalf("Failed opening WAL: %v", err)
}