-
Notifications
You must be signed in to change notification settings - Fork 248
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
Avoid config change to be lost. #36
Conversation
src/handle_join_leave.cxx
Outdated
p_in( "Try to add server %d. But now there is a " | ||
"un-committed config change. Should wait. " | ||
"Count: %d.", srv_to_join_->get_id(), count++); | ||
std::this_thread::sleep_for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @shigui1989 , sleeping inside Asio worker threads looks to me not good.
How about maintaining intermediate_config_
separate to config_
? That contains the latest config that is not committed yet. And we make new_conf
based on that intermediate_config_
, not config_
. Also we need to update intermediate_config_
properly here, and clear it in reconfigure()
function maybe. Then we can avoid the situation that multiple uncommitted configs overwrite each other.
Please let me know if you want to make this change by yourself, or I can do it on this PR. Thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. You can help. Please go ahead! Thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
…atch Fix bug which lead to memory leak (cherry picked from commit 1707a75)
…atch Fix bug which lead to memory leak
SDSTOR-xxxx bump sisl to v9
No description provided.