[SERVER-29392] cursorTimeoutMillisConfig has runtime initializer but is not wrapped in MONGO_EXPORT_SERVER_PARAMETER Created: 27/May/17  Updated: 27/Oct/23  Resolved: 02/Jun/17

Status: Closed
Project: Core Server
Component/s: Build
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Justin Seyster Assignee: DO NOT USE - Backlog - Platform Team
Resolution: Works as Designed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

The mongos "cursorTimeoutMillis" (cluster_cursor_cleanup_job.cpp) is a global variable with a runtime initializer. ADAM suspects that it should be declared using the MONGO_EXPORT_SERVER_PARAMETER macro, the way that the mongod parameter of the same name is declared (cursor_manager.cpp).

In addition to that, it's curious that there are two definitions of the same parameter (with different types). It's worth investigating if there is any possibility of an ODR violation resulting.



 Comments   
Comment by Andrew Morrow (Inactive) [ 02/Jun/17 ]

Per discussion, this is works as designed.

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