MXS-2326: Clone routing hints on gwbuf_clone

When a buffer is cloned the hints for that buffer should also be cloned.
This commit is contained in:
Markus Mäkelä 2019-02-13 08:38:17 +02:00
parent 19143e04e1
commit 775fc043c8
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -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;