Skip to content

Commit

Permalink
Exit from the kvlog goroutine when closing
Browse files Browse the repository at this point in the history
  • Loading branch information
magik6k committed Mar 10, 2021
1 parent d4a981f commit 2b380c9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/backupds/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ func (d *Datastore) startLog(logdir string) error {
if err := l.Close(); err != nil {
log.Errorw("failed to close log", "error", err)
}
return
}
}
}()
Expand Down Expand Up @@ -193,7 +194,7 @@ func (l *logfile) writeLogHead(logname string, ds datastore.Batching) error {
return xerrors.Errorf("writing loghead to the datastore: %w", err)
}

log.Infow("now log head", "loghead", string(lval))
log.Infow("new log head", "loghead", string(lval))

return nil
}
Expand Down

0 comments on commit 2b380c9

Please sign in to comment.