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

Fix usage of test-only code in scripting/mozjs/mongo.cpp

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Integration
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Note that while the shell is only used in testing, there is also serverside JS which is used in production, and this file is linked into the server.

      src/mongo/scripting/mozjs/mongo.cpp:451

      DatabaseName::createDatabaseName_forTest(boost::none, database),

      src/mongo/scripting/mozjs/mongo.cpp:658

      setCursorHandle(scope, c, NamespaceString::createNamespaceString_forTest(ns), cursorId, args);

            Assignee:
            Unassigned Unassigned
            Reporter:
            mathias@mongodb.com Mathias Stearn
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: