mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-10-23 21:48:28 +03:00
Moved commit()/rollback() to transaction_termination_service interface.
This commit is contained in:
21
include/wsrep/transaction_termination_service.hpp
Normal file
21
include/wsrep/transaction_termination_service.hpp
Normal file
@@ -0,0 +1,21 @@
|
||||
//
|
||||
// Copyright (C) 2018 Codership Oy <info@codership.com>
|
||||
//
|
||||
|
||||
|
||||
#ifndef WSREP_TRANSACTION_TERMINATION_SERVICE_HPP
|
||||
#define WSREP_TRANSACTION_TERMINATION_SERVICE_HPP
|
||||
|
||||
namespace wsrep
|
||||
{
|
||||
class ws_handle;
|
||||
class ws_meta;
|
||||
class transaction_termination_service
|
||||
{
|
||||
public:
|
||||
virtual int commit(const wsrep::ws_handle&, const wsrep::ws_meta&) = 0;
|
||||
virtual int rollback() = 0;
|
||||
};
|
||||
}
|
||||
|
||||
#endif // WSREP_TRANSACTION_TERMINATION_SERVICE_HPP
|
||||
Reference in New Issue
Block a user