Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/libostree/ostree-repo-pull.c
Original file line number Diff line number Diff line change
Expand Up @@ -3605,7 +3605,7 @@ ostree_repo_pull_with_options (OstreeRepo *self, const char *remote_name_or_base
opt_retry_all_set
= g_variant_lookup (options, "retry-all-network-errors", "b", &pull_data->retry_all);
opt_max_outstanding_fetcher_requests_set
= g_variant_lookup (options, "max-outstanding-fetcher-requests", "b",
= g_variant_lookup (options, "max-outstanding-fetcher-requests", "u",
&pull_data->max_outstanding_fetcher_requests);
opt_n_network_retries_set
= g_variant_lookup (options, "n-network-retries", "u", &pull_data->n_network_retries);
Expand Down Expand Up @@ -3687,7 +3687,7 @@ ostree_repo_pull_with_options (OstreeRepo *self, const char *remote_name_or_base
pull_data->low_speed_time = OPT_LOWSPEEDTIME_DEFAULT;
if (!opt_retry_all_set)
pull_data->retry_all = OPT_RETRYALL_DEFAULT;
if (!opt_max_outstanding_fetcher_requests_set)
if (!opt_max_outstanding_fetcher_requests_set || pull_data->max_outstanding_fetcher_requests == 0)
pull_data->max_outstanding_fetcher_requests
= OPT_OSTREE_MAX_OUTSTANDING_FETCHER_REQUESTS_DEFAULT;

Expand Down Expand Up @@ -6384,7 +6384,7 @@ ostree_repo_remote_fetch_summary_with_options (OstreeRepo *self, const char *nam
(void)g_variant_lookup (options, "low-speed-limit-bytes", "u", &low_speed_limit);
(void)g_variant_lookup (options, "low-speed-time-seconds", "u", &low_speed_time);
(void)g_variant_lookup (options, "retry-all-network-errors", "b", &retry_all);
(void)g_variant_lookup (options, "max-outstanding-fetcher-requests", "b",
(void)g_variant_lookup (options, "max-outstanding-fetcher-requests", "u",
&max_outstanding_fetcher_requests);
}

Expand Down
Loading