Move blr_set_checksum into blr.h

The function is used in two different files so it needs to be in the
header.
This commit is contained in:
Markus Mäkelä
2017-10-02 10:47:27 +03:00
parent 6f84f960ff
commit 1772cc9021
3 changed files with 1 additions and 2 deletions

View File

@ -125,7 +125,6 @@ static bool rses_begin_locked_router_action(ROUTER_SLAVE *);
static void rses_end_locked_router_action(ROUTER_SLAVE *);
GWBUF *blr_cache_read_response(ROUTER_INSTANCE *router, char *response);
/* Set checksum value in router instance from a master reply or saved buffer */
extern void blr_set_checksum(ROUTER_INSTANCE *instance, GWBUF *buf);
static SPINLOCK instlock;
static ROUTER_INSTANCE *instances;

View File

@ -788,6 +788,7 @@ extern const char *blr_get_encryption_algorithm(int);
extern int blr_check_encryption_algorithm(char *);
extern const char *blr_encryption_algorithm_list(void);
extern bool blr_get_encryption_key(ROUTER_INSTANCE *);
extern void blr_set_checksum(ROUTER_INSTANCE *instance, GWBUF *buf);
MXS_END_DECLS

View File

@ -108,7 +108,6 @@ static int blr_get_master_semisync(GWBUF *buf);
static void blr_terminate_master_replication(ROUTER_INSTANCE *router, uint8_t* ptr, int len);
void blr_notify_all_slaves(ROUTER_INSTANCE *router);
extern bool blr_notify_waiting_slave(ROUTER_SLAVE *slave);
void blr_set_checksum(ROUTER_INSTANCE *inst, GWBUF *buf);
static int keepalive = 1;