fix(tsdb): sync series segment to disk after writing (#22545)
Co-authored-by: Tristan Su <suqing.sq@alibaba-inc.com>pull/22574/head
parent
47007f6988
commit
0f6614ffa7
|
@ -212,7 +212,10 @@ func (s *SeriesSegment) Flush() error {
|
|||
if s.w == nil {
|
||||
return nil
|
||||
}
|
||||
return s.w.Flush()
|
||||
if err := s.w.Flush(); err != nil {
|
||||
return err
|
||||
}
|
||||
return s.file.Sync()
|
||||
}
|
||||
|
||||
// AppendSeriesIDs appends all the segments ids to a slice. Returns the new slice.
|
||||
|
|
Loading…
Reference in New Issue