Cleaning up

This commit is contained in:
Jason Fulghum
2023-10-11 15:47:52 -07:00
parent 3335a3ffa1
commit c904f25c4e

View File

@@ -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 {