Fix avrorouter client notifications
The notifications that tell clients about new data weren't using the correct mechanism.
This commit is contained in:
@ -377,7 +377,8 @@ bool notify_cb(DCB* dcb, void* data)
|
|||||||
|
|
||||||
if (dcb->service == service && dcb->dcb_role == DCB_ROLE_CLIENT_HANDLER)
|
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;
|
return true;
|
||||||
|
|||||||
@ -170,6 +170,8 @@ public:
|
|||||||
*/
|
*/
|
||||||
int routeQuery(GWBUF* buffer);
|
int routeQuery(GWBUF* buffer);
|
||||||
|
|
||||||
|
void queue_client_callback();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
AvroSession(Avro* instance, MXS_SESSION* session);
|
AvroSession(Avro* instance, MXS_SESSION* session);
|
||||||
|
|
||||||
@ -183,7 +185,6 @@ private:
|
|||||||
bool stream_data();
|
bool stream_data();
|
||||||
void rotate_avro_file(std::string fullname);
|
void rotate_avro_file(std::string fullname);
|
||||||
void client_callback();
|
void client_callback();
|
||||||
void queue_client_callback();
|
|
||||||
};
|
};
|
||||||
|
|
||||||
void read_table_info(uint8_t* ptr,
|
void read_table_info(uint8_t* ptr,
|
||||||
|
|||||||
Reference in New Issue
Block a user