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

Document Server-Internal Contextual Singletons

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 5.1.0-rc0
    • None
    • Fully Compatible
    • Service Arch 2021-08-23, Service Arch 2021-09-06, Service Arch 2021-09-20
    • 4

    Description

      We have a set of contextual singletons that exist in a clear hierarchy. They all live in src/mongo/db.

      Notable classes include:

      • ServiceContext
      • Client
      • OperationContext

      It's probably worth mentioning the OperationKiller and Interruptible interface with reference to the OperationContext.

      All of these pieces live in a single directory but they are used across the codebase, thus this documentation could live in a number of places:

      • docs/contexts.md would make this document immediately accessible.
      • src/mongo/db/readme.md as a large section.
      • src/mongo/db/contexts.md as a separate document.

      This is intended to be abstract documentation, describe relationships and state transitions not code in common language.

      Attachments

        Issue Links

          Activity

            People

              tyler.seip@mongodb.com Tyler Seip (Inactive)
              ben.caimano@mongodb.com Benjamin Caimano (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: