MXS-1545: fix file pointer reuse in blr_open_binlog

When binlog storage is TREE the check for existing BLFILE should use
gtid info in addition to strcmp
This commit is contained in:
MassimilianoPinto
2017-11-30 09:47:02 +01:00
parent aa35b202ec
commit 36129466e5
2 changed files with 82 additions and 24 deletions

View File

@ -340,8 +340,8 @@ static bool blr_handle_complex_select(ROUTER_INSTANCE *router,
const char *coln);
extern bool blr_is_current_binlog(ROUTER_INSTANCE *router,
ROUTER_SLAVE *slave);
extern bool blr_compare_binlogs(ROUTER_INSTANCE *router,
MARIADB_GTID_INFO *slave,
extern bool blr_compare_binlogs(const ROUTER_INSTANCE *router,
const MARIADB_GTID_INFO *slave,
const char *r_file,
const char *s_file);
static bool blr_purge_binary_logs(ROUTER_INSTANCE *router,