[SERVER-31559] Merge GenericCursorManager into MongoProcessInterface Created: 13/Oct/17  Updated: 30/Oct/23  Resolved: 14/Nov/17

Status: Closed
Project: Core Server
Component/s: Aggregation Framework, Querying
Affects Version/s: None
Fix Version/s: 3.7.1

Type: Task Priority: Major - P3
Reporter: David Storch Assignee: Bernard Gorman
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Backwards Compatibility: Fully Compatible
Backport Requested:
v3.6
Sprint: Query 2017-11-13, Query 2017-12-04
Participants:

 Description   

Since DocumentSources are linked into both mongos and mongod, aggregation stage code must access functionality specific to mongod or mongos via the MongoProcessInterface. This interface also serves a dependency injection role, as it prevents the aggregation framework from having to declare a dependency on other submodules of mongos and mongod.

Prior to the introduction of the MongoProcessInterface, a separate mechanism was added to provide similar functionality specifically for the test-only $listLocalSessions stage: the GenericCursorInterface. This interface abstracts over the mongod and mongos cursor managers. These two interfaces serve essentially the same purpose, and should therefore be merged. Specifically, we can do so by creating MongoProcessInterface::getCursors() and deleting the GenericCursorManager.



 Comments   
Comment by Githook User [ 14/Nov/17 ]

Author:

{'name': 'Bernard Gorman', 'username': 'gormanb', 'email': 'bernard.gorman@gmail.com'}

Message: SERVER-31559 Merge GenericCursorManager into MongoProcessInterface
Branch: master
https://github.com/mongodb/mongo/commit/d0251ad19f1599ffe64d94c2a08c33de5de9144f

Generated at Thu Feb 08 04:27:27 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.