Skip to content

Commit 4972ce0

Browse files
author
Daniele Sciascia
committed
Add writeset flag WSREP_FLAG_TRX_PREPARE
#23
1 parent 4fe3fb2 commit 4972ce0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

wsrep_api.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ typedef void (*wsrep_log_cb_t)(wsrep_log_level_t, const char *);
118118
typedef uint32_t wsrep_cap_t; //!< capabilities bitmask
119119

120120
/*!
121-
* Writeset flags
121+
* Writeset flags
122122
*
123123
* TRX_END the writeset and all preceding writesets must be committed
124124
* ROLLBACK all preceding writesets in a transaction must be rolled back
@@ -128,6 +128,7 @@ typedef uint32_t wsrep_cap_t; //!< capabilities bitmask
128128
* NATIVE the writeset contains another writeset in this provider format
129129
*
130130
* TRX_START shall be set on the first trx fragment by provider
131+
* TRX_PREPARE shall be set on the fragment which prepares the transaction
131132
*
132133
* Note that some of the flags are mutually exclusive (e.g. TRX_END and
133134
* ROLLBACK).
@@ -139,7 +140,8 @@ typedef uint32_t wsrep_cap_t; //!< capabilities bitmask
139140
#define WSREP_FLAG_COMMUTATIVE ( 1ULL << 4 )
140141
#define WSREP_FLAG_NATIVE ( 1ULL << 5 )
141142
#define WSREP_FLAG_TRX_START ( 1ULL << 6 )
142-
#define WSREP_FLAG_SNAPSHOT ( 1ULL << 7 )
143+
#define WSREP_FLAG_TRX_PREPARE ( 1ULL << 7 )
144+
#define WSREP_FLAG_SNAPSHOT ( 1ULL << 8 )
143145

144146
#define WSREP_FLAGS_LAST WSREP_FLAG_SNAPSHOT
145147
#define WSREP_FLAGS_MASK ((WSREP_FLAGS_LAST << 1) - 1)

0 commit comments

Comments
 (0)