Details
-
Bug
-
Resolution: Works as Designed
-
Minor - P4
-
None
-
None
-
None
-
Fully Compatible
-
ALL
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.