fix https://github.com/chrislusf/seaweedfs/issues/1870
@ -94,8 +94,12 @@ func (m *SortedFileNeedleMap) Delete(key NeedleId, offset Offset) error {
}
func (m *SortedFileNeedleMap) Close() {
m.indexFile.Close()
m.dbFile.Close()
if m.indexFile != nil {
if m.dbFile != nil {
func (m *SortedFileNeedleMap) Destroy() error {