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

Implement a temporary map of transaction runtime states on MongoS

    • Fully Compatible
    • Sharding 2018-06-18, Sharding 2018-07-02, Sharding 2018-07-16

      In order to be able to make progress on the sharded transactions work before the SessionCatalog is made decorable and made available on mongos, we should just create a simple std::map<LogicalSessionId, TransactionRuntimeState> in order to be able to store per-session transaction information. In order to abstract this temporary map, the API for TransactionRuntimeState should behave like a decoration on OperationContext, even though it might not be one at first.

      E.g.: static TransactionRuntimeState* TransactionRuntimeState::get(OperationContext* opCtx);

      Should include some basic unit-tests.

            Assignee:
            randolph@mongodb.com Randolph Tan
            Reporter:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: