[SERVER-84012] Make CursorResponse::getCursorType return CursorTypeEnum instead of std::string Created: 08/Dec/23  Updated: 10/Jan/24  Resolved: 10/Jan/24

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.3.0-rc0

Type: Task Priority: Major - P3
Reporter: Ryan Berryhill Assignee: Ryan Berryhill
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-83627 Convert CursorResponse::parseFromBSON... Closed
Assigned Teams:
Service Arch
Backwards Compatibility: Fully Compatible
Sprint: Service Arch 2023-12-25, Service Arch 2024-01-08, Service Arch 2024-01-22
Participants:

 Description   

getCursorType returns an optional<std::string> and callers use IDL to parse it into a CursorTypeEnum (e.g., here).

TaskExecutorCursor stores the result of getCursorType. However, callers of TaskExecutorCursor::getType also use IDL to parse it into CursorTypeEnum. Some of its callers are in the enterprise module.



 Comments   
Comment by Githook User [ 10/Jan/24 ]

Author:

{'name': 'Ryan Berryhill', 'email': 'ryanberryhill@users.noreply.github.com', 'username': 'ryanberryhill'}

Message: SERVER-84012 Change type of CursorResponse::_cursorType to CursorTypeEnum (#17764)

GitOrigin-RevId: e9c616eced6b3c872af8cf442c246a65d415d046
Branch: master
https://github.com/mongodb/mongo/commit/6e30b5efa3031a960b787b67fcc619c2f913d11c

Generated at Thu Feb 08 06:53:48 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.