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

linux copy file fix #32

Merged
merged 1 commit into from
Mar 7, 2025
Merged

linux copy file fix #32

merged 1 commit into from
Mar 7, 2025

Conversation

muralivemulapati
Copy link
Collaborator

The bug was only in the linux version of CopyFile() function which copies the duckdb database file into a snapshot file.Before the fix, we are using the source file descriptor already opened by duckdb block manager as an argument
to sendfile. But that file descriptor might be at any offset in the source file including at the end of the file in which
case we copy only zero bytes. The fix is to create a new file descriptor by opening the source file which is
guaranteed to be at the beginning offset of the source file.

@muralivemulapati muralivemulapati merged commit a6ff27f into ampere_main Mar 7, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants