mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2026-05-17 08:36:55 +03:00
The newly created data part could become missing after unclean shutdown (such as hardware power off), since the contents of the parent directory wasn't synced to disk before storing the newly created data part in the parts.json file. Fix this by syncing the parent directory contents before storing the newly created part in the parts.json file. This commit is based on https://github.com/VictoriaMetrics/VictoriaLogs/pull/507