Skip to content

fix(memory): decide on a smaller image copy before it is placed - #121

Merged
arthware-dev merged 1 commit into
mainfrom
fix/media-derive-size
Sep 23, 2026
Merged

arthware-dev merged 1 commit into
mainfrom
fix/media-derive-size

Conversation

@arthware-dev

Copy link
Copy Markdown
Contributor

Summary

  • An image copy that is not smaller than its original was placed in the media archive and deleted a moment later. The wiki can see that as a deletion of a file it never copied and fail its rebuild, the same failure as fix(memory): serve media archived while the wiki is running #120.
  • The size is now compared before the copy is renamed into place. What the archive keeps is unchanged.

An image copy that is not smaller than its original was renamed into
the media archive and deleted again a moment later. The wiki watches the
archive, and a file that appears and disappears between two rebuilds
can reach Quartz as a deletion of a file it never copied, which fails
the rebuild the same way an archive temporary file did.

The size is now compared while the copy still has its temporary name,
so a rejected copy never appears under its final name. What is kept is
unchanged.

Fixes: 03e1708 ("feat(memory): keep the original file behind a wiki page (#92)")
@arthware-dev
arthware-dev merged commit c06b97b into main Sep 23, 2026
1 check passed
@arthware-dev
arthware-dev deleted the fix/media-derive-size branch October 7, 2026 11:51
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.

1 participant