fix(agc): keep the pipeline journal's newest pipelines when it is full #9835

Closed
00xDisaster wants to merge 1 commit from upstream-pr/9835 into main
00xDisaster commented 2026-10-22 16:51:59 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by 00xDisaster on 2026-10-22T16:51:59Z.


This is a clean re-submission of #9440 based on the latest main.

The pipeline journal could lose the pipelines a title needs most in two ways:

  1. Replay kept first entries; newest were ignored.
  2. Writer refused records after size cap.

This fix:

  • Replays the newest entries.
  • Rewrites the file atomically at the size cap.

Tested on Linux (Ubuntu 24.04), GCC 16.2.1, NVIDIA GTX 1660 SUPER.
Focused tests in agc_driver_pipeline_journal pass.
Conventions check passed.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4970992027 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9835). Originally posted by [00xDisaster](https://github.com/00xDisaster) on 2026-10-22T16:51:59Z. --- This is a clean re-submission of #9440 based on the latest main. The pipeline journal could lose the pipelines a title needs most in two ways: 1. Replay kept first entries; newest were ignored. 2. Writer refused records after size cap. This fix: - Replays the newest entries. - Rewrites the file atomically at the size cap. Tested on Linux (Ubuntu 24.04), GCC 16.2.1, NVIDIA GTX 1660 SUPER. Focused tests in agc_driver_pipeline_journal pass. Conventions check passed.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!9835
No description provided.