-
Type:
Bug
-
Resolution: Incomplete
-
Priority:
Major - P3
-
None
-
Affects Version/s: 2.11.0, 2.11.3
-
Component/s: Query Operations
-
None
-
Environment:mongo version 2.4.5 64bit.
-
None
-
None
-
None
-
None
-
None
-
None
-
None
I am sending this command:
{ "$eval" : "var dbNamePrefix = 'logview'; var collName = 'logs'; var collectionPerDay = 10; load('/etc/db-init.js');"}and get this result:
{ "serverUsed" : "localhost/127.0.0.1:27000" , "errmsg" : "exception: JavaScript execution failed: Error: error loading js file: /etc/db-init.js near 'ad('/etc/db-init.js')' " , "code" : 16722 , "ok" : 0.0}the js file is in the correct folder.