SERVER-135420In Progress

Create PSAMEQueue, a single worker and PSAMEService

Create the PSAME task queue (a {{MultiProducerSingleConsumerQueue}}, producers use non-blocking {{tryPush()}}), a single worker thread running on low-priority tickets ({{TaskType::Background}}), and {{PSAMEService}} ({{ReplicaSetAwareService}}: {{onStartup}} initializes the queue and worker; {{onStepUpComplete}}/{{onStepDown}} notify primary state). {{PSAMEService}} is instantiated in {{mongod_main.cpp}}'s {{_initAndListen}}. The queue has a single consumer, so there is one worker, not a pool.

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix

No fix available yet.

Components
Server components related to this issue

No components specified.

Labels
Tags and classification
M2P1-M2psame