Fix for change master to new binlog file
Fix for change master to new binlog file
This commit is contained in:
@ -3231,6 +3231,7 @@ int blr_handle_change_master(ROUTER_INSTANCE* router, char *command, char *error
|
|||||||
/* close current file binlog file, next start slave will create the new one */
|
/* close current file binlog file, next start slave will create the new one */
|
||||||
fsync(router->binlog_fd);
|
fsync(router->binlog_fd);
|
||||||
close(router->binlog_fd);
|
close(router->binlog_fd);
|
||||||
|
router->binlog_fd = -1;
|
||||||
|
|
||||||
LOGIF(LT, (skygw_log_write(LOGFILE_TRACE, "%s: New MASTER_LOG_FILE is [%s]",
|
LOGIF(LT, (skygw_log_write(LOGFILE_TRACE, "%s: New MASTER_LOG_FILE is [%s]",
|
||||||
router->service->name,
|
router->service->name,
|
||||||
|
Reference in New Issue
Block a user