mirror of
https://github.com/dolthub/dolt.git
synced 2026-01-31 12:19:08 -06:00
Cleaning up
This commit is contained in:
@@ -21,7 +21,6 @@ import (
|
||||
"io"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"runtime/debug"
|
||||
"sync"
|
||||
|
||||
"github.com/dolthub/swiss"
|
||||
@@ -509,12 +508,7 @@ func (wr *journalWriter) Close() (err error) {
|
||||
|
||||
if wr.journal == nil {
|
||||
logrus.Warnf("journal writer has already been closed (%s)", wr.path)
|
||||
//logrus.Errorf("Stack: %s", string(debug.Stack()))
|
||||
panic("journalWriter::Close(): This shouldn't happen!")
|
||||
return nil
|
||||
} else {
|
||||
logrus.Errorf("closing journal writer (%s)", wr.path)
|
||||
logrus.Errorf("Stack: %s", string(debug.Stack()))
|
||||
}
|
||||
|
||||
if err = wr.flush(); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user