Skip to content

Commit a306d72

Browse files
committed
#25 Pass ws_handle as const for replay_trx()
1 parent eb7d6b8 commit a306d72

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

wsrep_api.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -834,9 +834,9 @@ struct wsrep_st {
834834
* @retval WSREP_CONN_FAIL must close client connection
835835
* @retval WSREP_NODE_FAIL must close all connections and reinit
836836
*/
837-
wsrep_status_t (*replay_trx)(wsrep_t* wsrep,
838-
wsrep_ws_handle_t* ws_handle,
839-
void* trx_ctx);
837+
wsrep_status_t (*replay_trx)(wsrep_t* wsrep,
838+
const wsrep_ws_handle_t* ws_handle,
839+
void* trx_ctx);
840840

841841
/*!
842842
* @brief Abort certify() call of another thread.

wsrep_dummy.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,8 @@ static wsrep_status_t dummy_release(
162162

163163
static wsrep_status_t dummy_replay_trx(
164164
wsrep_t* w,
165-
wsrep_ws_handle_t* ws_handle __attribute__((unused)),
166-
void* trx_ctx __attribute__((unused)))
165+
const wsrep_ws_handle_t* ws_handle __attribute__((unused)),
166+
void* trx_ctx __attribute__((unused)))
167167
{
168168
WSREP_DBUG_ENTER(w);
169169
return WSREP_OK;

0 commit comments

Comments
 (0)