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

ScopedThread is not defined in rc3 mongo shell

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Works as Designed
    • Affects Version/s: 2.6.0-rc3
    • Fix Version/s: None
    • Component/s: Shell
    • Labels:
    • Operating System:
      ALL

      Description

      ScopedThread is undefined in 2.6.0 rc3 shell, it work fine with rc2 shell.

      ## RC2 shell
      root@rui-linux:/sys/kernel/mm/transparent_hugepage# /ssd2/mongodb-linux-x86_64-2.6.0-rc2/bin/mongo
      MongoDB shell version: 2.6.0-rc2
      connecting to: test
      > t = new ScopedThread("test")
      2014-04-03T17:12:51.009-0700 Error: first argument must be a function at src/mongo/shell/utils.js:113
      > f = function() {return "";}
      function () {return "";}
      > t = new ScopedThread(f)
      {
              "init" : function init() { [native code] },
              "start" : function start() { [native code] },
              "join" : function join() { [native code] },
              "returnData" : function returnData() { [native code] }
      }
      >
       
      ## RC3 shell
      root@rui-linux:/sys/kernel/mm/transparent_hugepage# /ssd2/mongodb-linux-x86_64-2.6.0-rc3/bin/mongo
      MongoDB shell version: 2.6.0-rc3
      connecting to: test
      > f = function() {return "";}
      function () {return "";}
      > t = new ScopedThread(f)
      2014-04-03T17:14:07.873-0700 ReferenceError: ScopedThread is not defined
      >

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: