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

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 2.3.6
    • 2.3.7
    • Core
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.