Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-43880

renameCollection across DBs uses unowned RecordData after cursor has been yielded

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 4.2.0
    • Fix Version/s: 4.3.1, 4.2.2
    • Component/s: Catalog
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.2
    • Sprint:
      Execution Team 2019-11-04, Execution Team 2019-11-18

      Description

      renameBetweenDBs calls cursor->next() and keeps track of an unowned RecordData. After it saves, commits, and restores, it attempts to insert the RecordData it was holding in a prior snapshot.

      This is problematic because the RecordData can point to freed or overwritten memory.

        Attachments

          Activity

            People

            Assignee:
            milkie Eric Milkie
            Reporter:
            louis.williams Louis Williams
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: