mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #10604 from shreyas-s-rao/fix/open-wal-return-with-logger
wal: include logger in WAL returned by openAtIndex
This commit is contained in:
commit
d69090002a
@ -311,6 +311,7 @@ func openAtIndex(lg *zap.Logger, dirpath string, snap walpb.Snapshot, write bool
|
||||
|
||||
// create a WAL ready for reading
|
||||
w := &WAL{
|
||||
lg: lg,
|
||||
dir: dirpath,
|
||||
start: snap,
|
||||
decoder: newDecoder(rs...),
|
||||
|
Loading…
x
Reference in New Issue
Block a user