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

Force fetching documents on saveState() should be an exec stage

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Querying
    • None

    Description

      Doc-locking storage engines must force fetch documents when they yield: yielding invalidates the OperationContext, which allows documents keyed by RecordIds in a query's WorkingSet to be deleted or modified. Force fetching prevents queries from seeing these modifications when they resume with a new OperationContext.

      Moving this force fetching logic into a query execution stage will allow us to expose diagnostics/statistics regarding force fetching via existing mechanisms (e.g. explain and the profiler).

      Attachments

        Activity

          People

            Unassigned Unassigned
            david.storch@mongodb.com David Storch
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: