File-global variables in oplog.cpp should be decorations on ServiceContext

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.1.1
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • Fully Compatible
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      oplog.cpp contains several file-scoped variables that ought instead exist per instance of ServiceContext. It also contains a few now-unused global variables, which should be removed. This ticket's task is to remove the disused variables and move the remainder into a decoration on the ServiceContext.

      The variables to remove are:

      • lastSetTimestamp
      • newTimestampNotifier

      The variables to move to a decoration are:

      • _localOplogCollection
      • hashGenerator
      • newOpMutex
      • _oplogCollectionName

       

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

              Created:
              Updated:
              Resolved: