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

Collection::updateDocument() issues an INVALIDATION_MUTATION after performing an in-place update (MMAP v1)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical - P2
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.0-rc6
    • Component/s: Querying
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL

      Description

      In 2.6, the invalidation occurs before performing an in-place document update:

      https://github.com/mongodb/mongo/blob/r2.6.7/src/mongo/db/catalog/collection.cpp#L384-L391

      Due to a refactor to permit a pluggable storage API, mutation invalidations for in-place document updates now occur after the write. The intention of the validation framework is to notify active queries of writes that are about to happen, not ones that have already occurred.

      Affects only version 2.8 mongod configured with the MMAP v1 storage engine.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              david.storch David Storch
              Reporter:
              david.storch David Storch
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: