2023-06-20 13:57:04 +02:00
|
|
|
/* Copyright 2010-2023 Codership Oy <http://www.codership.com>
|
2014-08-06 14:39:15 +02:00
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; version 2 of the License.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to the Free Software
|
2019-05-11 21:19:05 +02:00
|
|
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA
|
2014-08-06 14:39:15 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
//! @file declares symbols private to wsrep integration layer
|
|
|
|
|
|
|
|
#ifndef WSREP_PRIV_H
|
|
|
|
#define WSREP_PRIV_H
|
|
|
|
|
2022-02-15 14:36:02 +01:00
|
|
|
#include "wsrep_api.h"
|
|
|
|
#include "wsrep/server_state.hpp"
|
2014-08-06 14:39:15 +02:00
|
|
|
|
|
|
|
ssize_t wsrep_sst_prepare (void** msg);
|
|
|
|
wsrep_cb_status wsrep_sst_donate_cb (void* app_ctx,
|
|
|
|
void* recv_ctx,
|
2019-01-23 12:30:00 +01:00
|
|
|
const wsrep_buf_t* msg,
|
2015-07-14 22:05:29 +02:00
|
|
|
const wsrep_gtid_t* state_id,
|
2019-01-23 12:30:00 +01:00
|
|
|
const wsrep_buf_t* state,
|
2014-08-06 14:39:15 +02:00
|
|
|
bool bypass);
|
|
|
|
|
|
|
|
extern wsrep_uuid_t local_uuid;
|
|
|
|
extern wsrep_seqno_t local_seqno;
|
|
|
|
|
|
|
|
// a helper function
|
2021-01-19 09:00:05 +01:00
|
|
|
bool wsrep_sst_received(THD*, const wsrep_uuid_t&, wsrep_seqno_t,
|
2019-01-23 12:30:00 +01:00
|
|
|
const void*, size_t);
|
|
|
|
|
|
|
|
void wsrep_notify_status(enum wsrep::server_state::state status,
|
|
|
|
const wsrep::view* view= 0);
|
2015-07-14 22:05:29 +02:00
|
|
|
|
2014-08-06 14:39:15 +02:00
|
|
|
#endif /* WSREP_PRIV_H */
|