1
0
mirror of https://github.com/codership/wsrep-lib.git synced 2025-07-28 20:02:00 +03:00

Added short sleep between calls to enter_toi().

This commit is contained in:
Teemu Ollakka
2019-09-04 16:43:01 +03:00
parent aaa92e130b
commit e700ce8c79
3 changed files with 46 additions and 28 deletions

View File

@ -1008,6 +1008,15 @@ namespace wsrep
enum wsrep::provider::status status =
wsrep::provider::success);
// Poll provider::enter_toi() until return status from provider
// does not indicate certification failure, timeout expires
// or client is interrupted.
enum wsrep::provider::status
poll_enter_toi(wsrep::unique_lock<wsrep::mutex>& lock,
const wsrep::key_array& keys,
const wsrep::const_buffer& buffer,
int flags,
std::chrono::time_point<wsrep::clock> wait_until);
void enter_toi_common(wsrep::unique_lock<wsrep::mutex>&);
void leave_toi_common();