Make ShardLocal stateless: remove ShardLocal::_lastOpTime field

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Won't Fix
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Fully Compatible
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      This is so that we can create an instance of ShardLocal on the stack whenever we need to use it, rather than do all reads/writes through a single instance of ShardLocal.

      The last optime is the only state that ShardLocal maintains, and rather than have ShardLocal and ReplicationCoordinator both maintain the latest optime, the ReplicationCoordinator should just be used by ShardLocal to get the latest optime.

            Assignee:
            Dianna Hohensee (Inactive)
            Reporter:
            Dianna Hohensee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: