mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
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:
parent
2f785015a5
commit
7fffd6ffd2
@ -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)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user