Skip to content

Commit

Permalink
#25 Pass ws_handle as const for replay_trx()
Browse files Browse the repository at this point in the history
  • Loading branch information
temeo committed Jun 19, 2018
1 parent eb7d6b8 commit a306d72
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions wsrep_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -834,9 +834,9 @@ struct wsrep_st {
* @retval WSREP_CONN_FAIL must close client connection
* @retval WSREP_NODE_FAIL must close all connections and reinit
*/
wsrep_status_t (*replay_trx)(wsrep_t* wsrep,
wsrep_ws_handle_t* ws_handle,
void* trx_ctx);
wsrep_status_t (*replay_trx)(wsrep_t* wsrep,
const wsrep_ws_handle_t* ws_handle,
void* trx_ctx);

/*!
* @brief Abort certify() call of another thread.
Expand Down
4 changes: 2 additions & 2 deletions wsrep_dummy.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ static wsrep_status_t dummy_release(

static wsrep_status_t dummy_replay_trx(
wsrep_t* w,
wsrep_ws_handle_t* ws_handle __attribute__((unused)),
void* trx_ctx __attribute__((unused)))
const wsrep_ws_handle_t* ws_handle __attribute__((unused)),
void* trx_ctx __attribute__((unused)))
{
WSREP_DBUG_ENTER(w);
return WSREP_OK;
Expand Down

0 comments on commit a306d72

Please sign in to comment.