Fix avrorouter client notifications
The notifications that tell clients about new data weren't using the correct mechanism.
This commit is contained in:
parent
37bfe1cd67
commit
1efe3e0b20
@ -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;
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user