We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01636b7 commit 36f982aCopy full SHA for 36f982a
db.go
@@ -2795,7 +2795,7 @@ func (d *DB) rotateWAL() (newLogNum base.DiskFileNum, prevLogSize uint64) {
2795
if err != nil {
2796
// What to do here? Stumbling on doesn't seem worthwhile. If we failed to
2797
// close the previous log it is possible we lost a write.
2798
- panic(err)
+ d.opts.Logger.Fatalf("pebble: error closing WAL; data loss possible if we continue: %s", err)
2799
}
2800
prevLogSize = uint64(offset)
2801
metrics := d.mu.log.writer.Metrics()
0 commit comments