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

Cursor .next() broken in db.eval

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 0.9.3
    • 0.9.3
    • JavaScript
    • None
    • Running mongodb-linux-x86_64-2009-05-20

    Description

      I use the following snippet to copy one collection to another for test purposes.

      db.eval('for(var c = db.original.find(); c.hasNext()

      { db.copied.save(c.next()); }

      ')

      This worked fine in the 2009-05-04 nightly (my previous running version) but appears to be broken in the latest nightly. mongod log and the accompanying shell log are attached.

      It seems to crash on any reference to c.next().

      Attachments

        1. mongo_shell.log.txt
          0.9 kB
        2. mongodb.log.txt
          3 kB

        Activity

          People

            eliot Eliot Horowitz (Inactive)
            goosmurf Yun Huang Yong
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: