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

Removed is_autocommi() from client_service interface as it is not

quite useful as there might not be enough information for it
after the statement has been processed. Better to handle retrying
on DBMS side. Also removed after_statement_result enumeration and
return plain int from after_statement().
This commit is contained in:
Teemu Ollakka
2018-07-06 19:48:48 +03:00
parent 3ff322386c
commit af18a10a49
6 changed files with 35 additions and 61 deletions

View File

@ -25,11 +25,6 @@ namespace wsrep
public:
client_service() { }
/**
*
*/
virtual bool is_autocommit() const = 0;
/**
* Return true if two pahase commit is required for transaction
* to commit.

View File

@ -223,28 +223,13 @@ namespace wsrep
*/
int before_statement();
/**
* Return values for after_statement() method.
*/
enum after_statement_result
{
/** Statement was executed succesfully */
asr_success,
/** Statement execution encountered an error, the transaction
* was rolled back */
asr_error,
/** Statement execution encountered an error, the transaction
was rolled back. However the statement was self contained
(e.g. autocommit statement) so it can be retried. */
asr_may_retry
};
/**
* After statement execution operations.
*
* * Check for must_replay state
* * Do rollback if requested
*/
enum after_statement_result after_statement();
int after_statement();
/** @} */
/**