parent
adfb6a9b46
commit
95f28cb571
|
@ -70,6 +70,8 @@ func CreateSeriesSegment(id uint16, path string) (*SeriesSegment, error) {
|
|||
return nil, err
|
||||
} else if err := f.Truncate(int64(SeriesSegmentSize(id))); err != nil {
|
||||
return nil, err
|
||||
} else if err := f.Sync(); err != nil {
|
||||
return nil, err
|
||||
} else if err := f.Close(); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue