Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-29392

cursorTimeoutMillisConfig has runtime initializer but is not wrapped in MONGO_EXPORT_SERVER_PARAMETER

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Works as Designed
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • Build
    • 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.

      Attachments

        Activity

          People

            backlog-server-platform DO NOT USE - Backlog - Platform Team
            justin.seyster@mongodb.com Justin Seyster
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: