mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-11-24 02:59:13 +08:00
Fix sorted needle file's write mode for (*SortedFileNeedleMap).Delete() (#5633)
This commit is contained in:
parent
3ddfd15ec1
commit
f2a37933b1
@ -27,7 +27,7 @@ func NewSortedFileNeedleMap(indexBaseFileName string, indexFile *os.File) (m *So
|
||||
}
|
||||
glog.V(1).Infof("Opening %s...", fileName)
|
||||
|
||||
if m.dbFile, err = os.Open(indexBaseFileName + ".sdx"); err != nil {
|
||||
if m.dbFile, err = os.OpenFile(indexBaseFileName+".sdx", os.O_RDWR, 0); err != nil {
|
||||
return
|
||||
}
|
||||
dbStat, _ := m.dbFile.Stat()
|
||||
|
Loading…
Reference in New Issue
Block a user