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

SSJS in system.js seems to get cached

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 1.3.2
    • None
    • JavaScript
    • None

    Description

      using a build from this morning.

      > db.system.js.find()
      > db.system.js.save({"_id": "foo", "value": function { return x + 1; }})
      > db.system.js.find()
      { "id" : "foo", "value" : function cf3f

      { return x + 1; }

      }
      > db.eval("function()

      { foo.apply(this, arguments)}

      ", 1)
      null
      > db.eval("function()

      { return foo.apply(this, arguments)}", 1)
      2
      > db.system.js.remove()
      > db.eval("function() { return foo.apply(this, arguments)}

      ", 1)
      2
      > db.system.js.find()
      > db.eval("function()

      { return foo.apply(this, arguments)}

      ", 1)
      2

      Attachments

        Activity

          People

            eliot Eliot Horowitz (Inactive)
            mike Michael Dirolf
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: