Close binlogrouter connections in thread 0

The internal connections of the binlogrouter should be closed in the same
thread that created them. This should be the "main" thread, i.e. thread 0,
that starts the original binlogrouter service.
This commit is contained in:
Markus Mäkelä
2017-08-21 13:21:56 +03:00
parent 27a706341b
commit 655f8b9170
4 changed files with 17 additions and 12 deletions

View File

@ -1137,7 +1137,7 @@ createInstance(SERVICE *service, char **options)
}
/* Start replication from master server */
blr_start_master(inst);
blr_start_master_in_main(inst);
}
return (MXS_ROUTER *)inst;