Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-19810

Fix decode buffer pool length in forestdb_iterator

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 4.5.1
    • 4.1.0
    • secondary-index
    • None
    • Untriaged
    • Unknown

    Description

      the docBufPool in forestdb_iterator needs to be in sync with
      maxIndexEntrySize in index_entry.go. After the last encoding scheme change,
      this seems to have gone out of sync.

      index_entry.go, key buf size is
      maxIndexEntrySize = MAX_SEC_KEY_BUFFER_LEN + MAX_DOCID_LEN + 2

      in forestdb_iterator, it is
      docBufPool = common.NewByteBufferPool(MAX_SEC_KEY_BUFFER_LEN)

      docBufPool can be updated to same value as maxIndexEntrySize

      Attachments

        Issue Links

          For Gerrit Dashboard: MB-19810
          # Subject Branch Project Status CR V

          Activity

            People

              deepkaran.salooja Deepkaran Salooja
              deepkaran.salooja Deepkaran Salooja
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty