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

SSJS in system.js seems to get cached

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.3.2
    • Affects Version/s: None
    • Component/s: JavaScript
    • None

      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

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

              Created:
              Updated:
              Resolved: