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:
@ -180,6 +180,7 @@ static GWBUF* gwbuf_clone_one(GWBUF* buf)
|
|||||||
rval->end = buf->end;
|
rval->end = buf->end;
|
||||||
rval->gwbuf_type = buf->gwbuf_type;
|
rval->gwbuf_type = buf->gwbuf_type;
|
||||||
rval->tail = rval;
|
rval->tail = rval;
|
||||||
|
rval->hint = hint_dup(buf->hint);
|
||||||
rval->next = NULL;
|
rval->next = NULL;
|
||||||
|
|
||||||
return rval;
|
return rval;
|
||||||
|
|||||||
Reference in New Issue
Block a user