Fix wal internal error log

This commit is contained in:
Hiroaki Nakamura
2022-05-13 23:23:22 +09:00
committed by Ben Johnson
parent e6f7c6052d
commit 46597ab22f

View File

@@ -289,7 +289,7 @@ func (s *Server) handleGetStream(w http.ResponseWriter, r *http.Request) {
// Flush after WAL segment has been written.
w.(http.Flusher).Flush()
}
if bitr.Err() != nil {
if err := bitr.Err(); err != nil {
s.Logger.Printf("wal iterator error: %s", err)
return
}