Force create TSS files.
This commit replaces an `os.OpenFile()` call with an `os.Create()` call which drops `O_EXCL` for `O_TRUNC` since `.tss` files are only created after `.tsm` files so lingering temporary files are safe to overwrite.pull/10616/head
parent
a06d4dea16
commit
e22aff46cb
|
@ -789,7 +789,7 @@ func (t *tsmWriter) writeStatsFile() error {
|
|||
return nil
|
||||
}
|
||||
|
||||
f, err := os.OpenFile(StatsFilename(fw.Name()), os.O_CREATE|os.O_RDWR|os.O_EXCL, 0666)
|
||||
f, err := os.Create(StatsFilename(fw.Name()))
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue