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

better error handling for NBO failures

when losing error voting:
- if NBO has failed locally (DBMS side), don't override original DBMS
  error so it gets reported to the client
- otherwise, report "query interrupted" instead of "error during commit"
This commit is contained in:
Leandro Pacheco
2019-09-17 11:06:36 -03:00
committed by Teemu Ollakka
parent b63e753aec
commit 3389b7ad3c
2 changed files with 29 additions and 16 deletions

View File

@ -790,10 +790,12 @@ namespace wsrep
* passed to begin_nbo_phase_one().
*
* @param keys Key array.
* @param has_error True if client thread has errored.
* @param wait_until Time point to wait until for entering TOI for
* phase two.
*/
int begin_nbo_phase_two(const wsrep::key_array& keys,
bool has_error,
std::chrono::time_point<wsrep::clock>
wait_until =
std::chrono::time_point<wsrep::clock>());