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

Document Server-Internal Contextual Singletons

    • Fully Compatible
    • Service Arch 2021-08-23, Service Arch 2021-09-06, Service Arch 2021-09-20
    • 4

      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.

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

              Created:
              Updated:
              Resolved: