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 copy that causing physical file being reclaimed #99

Merged
merged 1 commit into from
Aug 22, 2023

Conversation

ruhan1
Copy link
Contributor

@ruhan1 ruhan1 commented Aug 22, 2023

When copy a file from src to target, the insert method will use the existing physical file and remove the current file. However, in the case of copying, the current file is equal to existing file. This will cause the physical file being reclaimed. This fix add an 'if' to avoid it.

This pr also include some log changes, and use 'setConsistencyLevel(QUORUM)' to make the reverse map 'update-and-check' more reliable.

@ruhan1 ruhan1 requested a review from sswguo August 22, 2023 08:17
@sswguo
Copy link
Member

sswguo commented Aug 22, 2023

LGTM.

@ruhan1 ruhan1 merged commit 4a4ab70 into Commonjava:master Aug 22, 2023
1 check passed
@ruhan1 ruhan1 deleted the master-fixcopy branch August 22, 2023 08:27
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.

2 participants