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

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Integration
    • None
    • 3
    • 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
            Reporter:
            Mathias Stearn
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: