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

Make ShardLocal stateless: remove ShardLocal::_lastOpTime field

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Sharding
    • None
    • Fully Compatible

    Description

      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.

      Attachments

        Activity

          People

            dianna.hohensee@mongodb.com Dianna Hohensee (Inactive)
            dianna.hohensee@mongodb.com Dianna Hohensee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: