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

renameCollection across DBs uses unowned RecordData after cursor has been yielded

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.3.1, 4.2.2
    • Affects Version/s: 4.2.0
    • Component/s: Catalog
    • None
    • Fully Compatible
    • ALL
    • v4.2
    • Execution Team 2019-11-04, Execution Team 2019-11-18

      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.

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

              Created:
              Updated:
              Resolved: