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:
Joe Betz 2019-04-10 16:15:13 -07:00 committed by GitHub
commit d69090002a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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...),