Skip to content

pull: Read max outstanding fetcher requests as uint32 - #3694

Merged
cgwalters merged 1 commit into
ostreedev:mainfrom
liweidong1722:fix-pull
Nov 16, 2026
Merged

cgwalters merged 1 commit into
ostreedev:mainfrom
liweidong1722:fix-pull

Conversation

@liweidong1722

Copy link
Copy Markdown

The max-outstanding-fetcher-requests option is documented and passed by the CLI as a uint32, but both pull and summary fetching looked it up as a boolean. As a result, the supplied value was ignored and the default was used instead.

Look up the option as a uint32 in both paths so the requested limit reaches the fetcher.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

An accepted zero fetcher-request limit prevents metadata scanning when static deltas are disabled, causing pulls to wait indefinitely unless zero is normalized or rejected.

1 open issue
What changed in this PR

This PR corrects how libostree reads the fetcher concurrency limit so values supplied by the CLI are honored instead of silently falling back to the default.

Changes:

  • Read max-outstanding-fetcher-requests as a uint32 rather than a boolean in both pull and remote-summary fetching.
File Description
src/​libostree/​ostree-repo-pull.c Corrects the option’s lookup type in both fetching paths.

Review effort: Balanced

Comment thread src/libostree/ostree-repo-pull.c Resolved
The max-outstanding-fetcher-requests option is documented and passed by the CLI as a uint32, but both pull and summary fetching looked it up as a boolean. As a result, the supplied value was ignored and the default was used instead.

Look up the option as a uint32 in both paths so the requested limit reaches the fetcher.
@cgwalters
cgwalters merged commit d3fa64a into ostreedev:main Nov 16, 2026
22 of 24 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.

3 participants