Browse Source

wal: include logger in WAL returned by openAtIndex

Signed-off-by: Shreyas Rao <shreyas.sriganesh.rao@sap.com>
Shreyas Rao 6 years ago
parent
commit
914e5edb00
1 changed files with 1 additions and 0 deletions
  1. 1 0
      wal/wal.go

+ 1 - 0
wal/wal.go

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