-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: 0.9.3
-
Component/s: JavaScript
-
None
-
Environment:Running mongodb-linux-x86_64-2009-05-20
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().