Tee: Remove obsolete struct member
Tee no longer uses the dummy_filterdef FILTER_DEF member, so it can be removed. That means that filter_free() can be removed from the public filter.h include.
This commit is contained in:
@ -135,7 +135,6 @@ typedef struct
|
|||||||
{
|
{
|
||||||
DOWNSTREAM down; /* The downstream filter */
|
DOWNSTREAM down; /* The downstream filter */
|
||||||
UPSTREAM up; /* The upstream filter */
|
UPSTREAM up; /* The upstream filter */
|
||||||
FILTER_DEF* dummy_filterdef;
|
|
||||||
int active; /* filter is active? */
|
int active; /* filter is active? */
|
||||||
bool use_ok;
|
bool use_ok;
|
||||||
int client_multistatement;
|
int client_multistatement;
|
||||||
@ -612,10 +611,6 @@ freeSession(MXS_FILTER *instance, MXS_FILTER_SESSION *session)
|
|||||||
create_orphan(ses);
|
create_orphan(ses);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (my_session->dummy_filterdef)
|
|
||||||
{
|
|
||||||
filter_free(my_session->dummy_filterdef);
|
|
||||||
}
|
|
||||||
if (my_session->tee_replybuf)
|
if (my_session->tee_replybuf)
|
||||||
{
|
{
|
||||||
gwbuf_free(my_session->tee_replybuf);
|
gwbuf_free(my_session->tee_replybuf);
|
||||||
|
Reference in New Issue
Block a user