1
0
mirror of https://github.com/codership/wsrep-lib.git synced 2025-07-31 18:24:25 +03:00

Add application defined sequential consistency for certification

Client state methods before_prepare() and before_commit() accept
a callback which is called by the provider after it can guarantee
sequential consistency. This allows application threads which wish to
maintain sequential consistency to enter before_prepare() and
before_commit() calls concurrently without waiting the prior call
to finish.
This commit is contained in:
Teemu Ollakka
2024-11-21 14:29:11 +02:00
parent 1c61b809d1
commit 3de594b662
9 changed files with 113 additions and 31 deletions

View File

@ -79,7 +79,8 @@ namespace wsrep
certify(wsrep::client_id client_id,
wsrep::ws_handle& ws_handle,
int flags,
wsrep::ws_meta& ws_meta)
wsrep::ws_meta& ws_meta,
const seq_cb* /* Ignored in unit tests. */)
WSREP_OVERRIDE
{
ws_handle = wsrep::ws_handle(ws_handle.transaction_id(), (void*)1);