From 775fc043c878c013aa1007b34a1b0e7f514d9c06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Wed, 13 Feb 2019 08:38:17 +0200 Subject: [PATCH] MXS-2326: Clone routing hints on gwbuf_clone When a buffer is cloned the hints for that buffer should also be cloned. --- server/core/buffer.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/server/core/buffer.cc b/server/core/buffer.cc index beb1832a0..7156b9b48 100644 --- a/server/core/buffer.cc +++ b/server/core/buffer.cc @@ -180,6 +180,7 @@ static GWBUF* gwbuf_clone_one(GWBUF* buf) rval->end = buf->end; rval->gwbuf_type = buf->gwbuf_type; rval->tail = rval; + rval->hint = hint_dup(buf->hint); rval->next = NULL; return rval;