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

Moved commit()/rollback() to transaction_termination_service interface.

This commit is contained in:
Teemu Ollakka
2018-06-18 15:31:57 +03:00
parent 03043d3f25
commit 4a92841cb2
3 changed files with 44 additions and 12 deletions

View File

@ -14,6 +14,8 @@
#ifndef WSREP_CLIENT_SERVICE_HPP
#define WSREP_CLIENT_SERVICE_HPP
#include "transaction_termination_service.hpp"
#include "buffer.hpp"
#include "provider.hpp"
#include "mutex.hpp"
@ -22,7 +24,7 @@
namespace wsrep
{
class transaction;
class client_service
class client_service : public wsrep::transaction_termination_service
{
public:
client_service(wsrep::provider& provider)
@ -76,17 +78,6 @@ namespace wsrep
* Apply a write set.
*/
virtual int apply(const wsrep::const_buffer&) = 0;
/**
* Commit transaction.
*/
virtual int commit(const wsrep::ws_handle&, const wsrep::ws_meta&) = 0;
/**
* Roll back transaction.
*/
virtual int rollback() = 0;
//
// Interface to global server state
//