cursorTimeoutMillisConfig has runtime initializer but is not wrapped in MONGO_EXPORT_SERVER_PARAMETER

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Works as Designed
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Build
    • None
    • Fully Compatible
    • ALL
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            DO NOT USE - Backlog - Platform Team
            Reporter:
            Justin Seyster
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: