Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use copy when a rename spans volumes #23785

Merged
merged 1 commit into from
Oct 12, 2022

Conversation

davidby-influx
Copy link
Contributor

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 #22997

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 #22997
@davidby-influx davidby-influx merged commit 0913276 into master-1.x Oct 12, 2022
@davidby-influx davidby-influx deleted the DSB_DSB_cross_dev_1.x branch October 12, 2022 17:10
davidby-influx added a commit that referenced this pull request Oct 13, 2022
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 #22997

(cherry picked from commit 0913276)
davidby-influx added a commit that referenced this pull request Oct 13, 2022
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 #22997

(cherry picked from commit 0913276)

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

Also move shared code from file_unix.go

(cherry picked from commit bc8d9ea)

closes #23791
chengshiwen pushed a commit to chengshiwen/influxdb that referenced this pull request Aug 11, 2024
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 influxdata#22997
chengshiwen pushed a commit to chengshiwen/influxdb that referenced this pull request Aug 27, 2024
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 influxdata#22997
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants