wal: include logger in WAL returned by openAtIndex

Signed-off-by: Shreyas Rao <shreyas.sriganesh.rao@sap.com>
This commit is contained in:
Shreyas Rao 2019-04-02 13:08:04 +05:30
parent a621d807f0
commit 914e5edb00

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