Skip to content

feat: Pause IO for BackupProvider#4182

Merged
flub merged 2 commits intomasterfrom
flub/backup-provider-pause-io
Mar 20, 2023
Merged

feat: Pause IO for BackupProvider#4182
flub merged 2 commits intomasterfrom
flub/backup-provider-pause-io

Conversation

@flub
Copy link
Copy Markdown
Contributor

@flub flub commented Mar 20, 2023

This makes the BackupProvider automatically invoke pause-io while it
is needed.

It needed to make the guard independent from the Context lifetime to
make this work. Which is a bit sad.

Closes #4176

#skip-changelog

This makes the BackupProvider automatically invoke pause-io while it
is needed.

It needed to make the guard independent from the Context lifetime to
make this work.  Which is a bit sad.
@flub flub requested review from link2xt and r10s March 20, 2023 11:07
@flub flub mentioned this pull request Mar 20, 2023
25 tasks
@flub
Copy link
Copy Markdown
Contributor Author

flub commented Mar 20, 2023

I think this failures are unrelated?

@r10s
Copy link
Copy Markdown
Contributor

r10s commented Mar 20, 2023

ftr: successor of #4177

Copy link
Copy Markdown
Contributor

@r10s r10s left a comment

Choose a reason for hiding this comment

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

i cannot tell too much about the rust internals, but it lgtm at a first glance.

i also think, we should get that in soon, so that it can be tested in practise with the next 1.35 test releases.

not sure about the CI failures

@flub flub merged commit 35f50a8 into master Mar 20, 2023
@flub flub deleted the flub/backup-provider-pause-io branch March 20, 2023 18:57
flub added a commit that referenced this pull request Mar 21, 2023
Since #4182 (35f50a8) we no longer
need to stop IO explicitly, so let's not do that as it makes things
simpler to understand.
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.

is dc_stop_io() needed before dc_backup_provider_new() or not?

2 participants