Skip to content

fix: skip duplicate file_ids to prevent DB constraint violations#132

Merged
svenrdz merged 1 commit intomainfrom
fix-duplicate-fileid
Feb 3, 2026
Merged

fix: skip duplicate file_ids to prevent DB constraint violations#132
svenrdz merged 1 commit intomainfrom
fix-duplicate-fileid

Conversation

@svenrdz
Copy link
Collaborator

@svenrdz svenrdz commented Feb 3, 2026

When multiple replicas of the same file have different checksums, the database constraint would fail after running update. Fix is to simply skip duplicate file_ids - keeping the first one encountered.

@svenrdz svenrdz mentioned this pull request Feb 3, 2026
@svenrdz svenrdz force-pushed the fix-duplicate-fileid branch from e932540 to 3b47705 Compare February 3, 2026 13:13
When multiple replicas of the same file have different checksums, the
database constraint would fail after running update. Fix is to simply
skip duplicate file_ids - keeping the first one encountered.
@svenrdz svenrdz force-pushed the fix-duplicate-fileid branch 2 times, most recently from 3b47705 to 55be6a0 Compare February 3, 2026 15:15
@svenrdz svenrdz merged commit b5253ea into main Feb 3, 2026
3 checks passed
@svenrdz svenrdz deleted the fix-duplicate-fileid branch February 13, 2026 10:19
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