influxdb/pkg/file
davidby-influx 514f024b7d
fix: use copy when a rename spans volumes (#23785) (#23792)
When a file rename fails with EXDEV
(cross device or volume error), copy the
file and delete the original instead

Differs from master branch by overwriting
existing files instead of erring.

closes https://github.com/influxdata/influxdb/issues/22997

(cherry picked from commit 0913276ff0)

* fix: add tests for file rename across volumes (#23787)

Also move shared code from file_unix.go

(cherry picked from commit bc8d9ea9f3)

closes https://github.com/influxdata/influxdb/issues/23791
2022-10-13 11:56:35 -07:00
..
file.go fix: use copy when a rename spans volumes (#23785) (#23792) 2022-10-13 11:56:35 -07:00
file_test.go fix: use copy when a rename spans volumes (#23785) (#23792) 2022-10-13 11:56:35 -07:00
file_unix.go fix: use copy when a rename spans volumes (#23785) (#23792) 2022-10-13 11:56:35 -07:00
file_windows.go fix: use copy when a rename spans volumes (#23785) (#23792) 2022-10-13 11:56:35 -07:00