From 39ca791a493525ae27adc3cd62fc0f6ea37deb42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Mon, 1 May 2017 16:37:28 +0300 Subject: [PATCH] Assign service pointer for cloned tee DCBs When a cloned DCB is created, the service pointer is not copied and it needs to be manually set in the newSession entry point. This most likely due to the fact that the cloned DCB always has a different service and it is not possible to deduce it. Another option would be to pass the target service as a parameter but the whole DCB cloning process could use with a rewrite so any modifications beyond the required minimum are wasteful. --- server/modules/filter/tee/tee.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/modules/filter/tee/tee.c b/server/modules/filter/tee/tee.c index e0a214b3f..c16a37b19 100644 --- a/server/modules/filter/tee/tee.c +++ b/server/modules/filter/tee/tee.c @@ -493,6 +493,8 @@ newSession(MXS_FILTER *instance, MXS_SESSION *session) goto retblock; } + dcb->service = my_instance->service; + if ((ses = session_alloc(my_instance->service, dcb)) == NULL) { dcb_close(dcb);