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:
@ -24,7 +24,7 @@
|
||||
*/
|
||||
|
||||
#ifndef WSREP_CHRONO_HPP
|
||||
#define WSREP_CHORNO_HPP
|
||||
#define WSREP_CHRONO_HPP
|
||||
|
||||
#include <chrono>
|
||||
|
||||
|
@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user