MXS-1881: Pass the RowEventConverer as a parameter

The RowEventConverter is now passed as a parameter to the Avro
instance. Wrapped the value in an std::auto_ptr to make the cleanup
automatic (when it is implemented).

Fixed a typo in the event handler member variable and removed the unused
stats member.
This commit is contained in:
Markus Mäkelä
2018-06-09 20:09:45 +03:00
parent 8f76cf5f5a
commit c39fa4009e
6 changed files with 32 additions and 33 deletions

View File

@ -380,7 +380,7 @@ void notify_all_clients(Avro *router)
void do_checkpoint(Avro *router)
{
router->event_hander->flush_tables();
router->event_handler->flush_tables();
avro_save_conversion_state(router);
notify_all_clients(router);
router->row_count = router->trx_count = 0;