Fix avrorouter client notifications

The notifications that tell clients about new data weren't using the
correct mechanism.
This commit is contained in:
Markus Mäkelä 2019-05-09 15:31:29 +03:00
parent 37bfe1cd67
commit 1efe3e0b20
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19
2 changed files with 4 additions and 2 deletions

View File

@ -377,7 +377,8 @@ bool notify_cb(DCB* dcb, void* data)
if (dcb->service == service && dcb->dcb_role == DCB_ROLE_CLIENT_HANDLER)
{
poll_fake_write_event(dcb);
auto session = (AvroSession*)dcb->session->router_session;
session->queue_client_callback();
}
return true;

View File

@ -170,6 +170,8 @@ public:
*/
int routeQuery(GWBUF* buffer);
void queue_client_callback();
private:
AvroSession(Avro* instance, MXS_SESSION* session);
@ -183,7 +185,6 @@ private:
bool stream_data();
void rotate_avro_file(std::string fullname);
void client_callback();
void queue_client_callback();
};
void read_table_info(uint8_t* ptr,