Uploaded image for project: 'MariaDB MaxScale'
  1. MariaDB MaxScale
  2. MXS-2470

gwbuf_clone does not update the pointer 'tail' of GWBUF object

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3.6
    • Fix Version/s: 2.3.7
    • Component/s: Core
    • Labels:
      None
    • Sprint:
      MXS-SPRINT-82

      Description

      server/core/buffer.cc
      In the method 'GWBUF* gwbuf_clone(GWBUF* buf)'. The pointer 'rval->tail' should be updated if there are more than one GWBUF objects need to be cloned, but it is not.
      The problem is, while the job of method 'gwbuf_clone' is done, the pointer 'rval->tail' does not point to the last GWBUF object in GWBUF object list, but 'rval' itself.

      Maybe we should add a line 'rval->tail = clonebuf;' after the line 'clonebuf = clonebuf->next;'?

        Attachments

          Activity

            People

            Assignee:
            johan.wikman Johan Wikman
            Reporter:
            VWagen Wu Xiang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Git Integration