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

Implemented dbsim high prio service log_dummy_write_set()

The empty implementation of log_dummy_write_set() in dbsim
high priority service implementation left unreleased commit
order critical section behind whenever remote write set failed
certification. Added calls to do empty commit to release the
critical section.

Other:

Implemented ostream operator<< for wsrep:🧵:id, and added
printout of owning thread into transaction debug output.
This commit is contained in:
Teemu Ollakka
2019-01-24 13:34:15 +02:00
parent f30d9c06ce
commit fc5f59d27e
6 changed files with 55 additions and 5 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright (C) 2018 Codership Oy <info@codership.com>
* Copyright (C) 2018-2019 Codership Oy <info@codership.com>
*
* This file is part of wsrep-lib.
*
@ -18,6 +18,7 @@
*/
#include <pthread.h>
#include <iosfwd>
namespace wsrep
{
@ -34,6 +35,7 @@ namespace wsrep
{
return (pthread_equal(left.thread_, right.thread_));
}
friend std::ostream& operator<<(std::ostream&, const id&);
pthread_t thread_;
};
@ -48,4 +50,6 @@ namespace wsrep
{
static inline thread::id get_id() { return thread::id(pthread_self()); }
}
std::ostream& operator<<(std::ostream&, const thread::id&);
};