-
-
Notifications
You must be signed in to change notification settings - Fork 81
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
Context::set_config(): Restart IO scheduler if needed (#5111) #5117
Conversation
7454397
to
c4325a0
Compare
5694c87
to
ed2636f
Compare
ed2636f
to
9cd2b4f
Compare
Note: Before we merge this, we should get some buy-in from UI people whether this actually makes their lives easier. Because we now have Or was there already a complaint from UI people about this? |
This is a bit ugly, but the only external API is still
Android does it manually, it can be removed from Android then. JSON-RPC bindings already do this inside the bindings, now it is moved to the core. There was no complaint from UI devs, but @missytake got a problem with the bot: #5111 |
OK then it's nice that we fix this footgun 👍 |
9cd2b4f
to
5cd851e
Compare
I also don't like that now we have so much |
5cd851e
to
287cfaf
Compare
287cfaf
to
fb6a1f2
Compare
And now this is the problem: Added another one fix for this. But not quite sure the server behaviour is correct. EDIT: So, the tests passed 3 times w/o failures, apparently two extra fixes are working. But it's weird that several footguns were found while implementing such a simple thing. |
01dbee4
to
8bb1dce
Compare
9328c39
to
b9673ff
Compare
Now only |
b9673ff
to
5d0e9cc
Compare
Moved a couple of fixes related to mvbox creation to #5251 for easier review. EDIT: Can't easily split out |
5d0e9cc
to
b896eff
Compare
Restart the IO scheduler if needed to make the new config value effective (for `MvboxMove, OnlyFetchMvbox, SentboxWatch` currently). Also add `set_config_internal()` which doesn't affect running the IO scheduler. The reason is that `Scheduler::start()` itself calls `set_config()`, although not for the mentioned keys, but still, and also Rust complains about recursive async calls.
b896eff
to
f1d1347
Compare
this is done by core as needed since deltachat/deltachat-core-rust#5117
this is done by core as needed since deltachat/deltachat-core-rust#5117
this is done by core as needed since deltachat/deltachat-core-rust#5117
this is done by core as needed since deltachat/deltachat-core-rust#5117
See commit messages.
Fixes #5111