Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unnecessary argument #1672

Merged
merged 1 commit into from
Mar 17, 2025
Merged

Conversation

mkeeter
Copy link
Contributor

@mkeeter mkeeter commented Mar 17, 2025

The Downstairs already has the region definition available locally, so we don't need to pass in the extent count.

@mkeeter mkeeter merged commit 381047a into main Mar 17, 2025
17 checks passed
@mkeeter mkeeter deleted the mkeeter/remove-unnecessary-argument branch March 17, 2025 17:05
mkeeter added a commit that referenced this pull request Mar 18, 2025
`Downstairs::begin_repair_for` had confusing semantics: it was used to
both start live-repair (setting `self.repair` to `Some(..)`) _and_ to
send subsequent jobs. Most of its arguments were only used in one or the
other case.

This PR splits it into three functions:

- `start_live_repair` initializes `self.repair` and sends the first
live-repair IO
- `send_next_live_repair` sends the next live-repair IO
- Under the hood, both of these functions call `send_live_repair_jobs`
to reserve repair IDs and actually send IO

In passing, I also removed the `extent_count` argument from
`notify_live_repair_progress`, since it can be computed locally
(basically just pushing the change from #1672 further down the call
stack).
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.

None yet

2 participants