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

Investigate releasing locks in the constructor of AutoGetCollectionOrViewForRead

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Do
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Internal Code
    • None
    • Storage Execution

    Description

      In SERVER-24766, AutoGetCollectionOrViewForRead has a method that relinquishes its locks. This is required to maintain correct statistics: simply destroying the AutoGetCollectionOrViewForRead would cause CurOp to log only the time resolving the view and not include the time actually performing the aggregation on the backing namespace.

      This unlock method is not in the spirit of RAII and we should investigate whether or not it would be possible to relinquish the database lock in the constructor of AutoGetCollectionOrViewForRead instead if the namespace is a view and not a collection.

      Attachments

        Activity

          People

            backlog-server-execution Backlog - Storage Execution Team
            kyle.suarez@mongodb.com Kyle Suarez
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: