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

Fix #4324 by switching io_context in merge, also reduce contact with app #4329

Merged

Conversation

graydon
Copy link
Contributor

@graydon graydon commented May 17, 2024

This appears to fix (at least by my local testing) the race in bug #4324

using task_t = std::packaged_task<std::shared_ptr<Bucket>()>;
std::shared_ptr<task_t> task = std::make_shared<task_t>(
[curr, snap, &bm, shadows, maxProtocolVersion, countMergeEvents, level,
&timer, &app]() mutable {
&timer, &ctx, doFsync, availableTime]() mutable {
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't mind this change, but I think a deeper refactor is needed here. We still capture BM which can access the app under the hood. That's probably out of scope for this PR, so we can merge as-is.

@marta-lokhova
Copy link
Contributor

r+ 2abb588

@latobarita latobarita merged commit 0f35905 into stellar:master May 22, 2024
15 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.

None yet

3 participants