Make global "grid" object a decoration on ServiceContext

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.1.1
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Fully Compatible
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Making the grid object a decoration on the ServiceContext ties its lifetime to the ServiceContext, which in turn makes it easier to create and destroy ServiceContexts in unit tests. This will allow a future simplification of unit test code, and is also more consistent with modern MongoDB coding practices.

            Assignee:
            Andy Schwerin
            Reporter:
            Andy Schwerin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: