[SERVER-9503] Incorrect usage of execFile function in multiple locations Created: 29/Apr/13  Updated: 11/Jul/16  Resolved: 27/Jun/13

Status: Closed
Project: Core Server
Component/s: Shell, Storage
Affects Version/s: 2.5.0
Fix Version/s: 2.5.1

Type: Bug Priority: Major - P3
Reporter: Andreas Nilsson Assignee: Andreas Nilsson
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

The execFile function is declared as taking bool, bool and int params:

Scope::execFile(const string& filename, bool printResult, bool reportError,
int timeoutMs)

but in the following places called with three boolean arguments:
shell/dbshell.cpp:932: scope->execFile( files[i] , false , true, false)
scripting/engine_spidermonkey.cpp:1805: s->execFile( filename, false, true, false)
scripting/engine_v8.cpp:607: scope->execFile(filename, false, true, false)



 Comments   
Comment by auto [ 27/Jun/13 ]

Author:

{u'username': u'agralius', u'name': u'Andreas Nilsson', u'email': u'andreas.nilsson@10gen.com'}

Message: SERVER-9503 Corrected usage of execFile function calls
Branch: master
https://github.com/mongodb/mongo/commit/3bfd47b218a0dc7614c46f6fe4499cf6efa68fb2

Generated at Thu Feb 08 03:20:36 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.