summaryrefslogtreecommitdiff
path: root/shell/dbshell.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'shell/dbshell.cpp')
-rw-r--r--shell/dbshell.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/shell/dbshell.cpp b/shell/dbshell.cpp
index 9868c427ecb..5a3cf375b4d 100644
--- a/shell/dbshell.cpp
+++ b/shell/dbshell.cpp
@@ -66,7 +66,8 @@ void generateCompletions( const string& prefix , vector<string>& all ) {
if ( prefix.find( '"' ) != string::npos )
return;
- shellMainScope->invokeSafe("function(x) {shellAutocomplete(x)}", BSON("0" << prefix), 1000);
+ BSONObj args = BSON("0" << prefix);
+ shellMainScope->invokeSafe("function(x) {shellAutocomplete(x)}", &args, 0, 1000);
BSONObjBuilder b;
shellMainScope->append( b , "" , "__autocomplete__" );
BSONObj res = b.obj();