summaryrefslogtreecommitdiff
path: root/scripting
diff options
context:
space:
mode:
authoragirbal <antoine@10gen.com>2010-12-23 17:39:22 -0800
committeragirbal <antoine@10gen.com>2010-12-23 17:39:22 -0800
commit378ba71fd2d98fcfd73deebd32376bdcee08df82 (patch)
treed5e313728f260cf8ff1f0dae93864a5ef5009dea /scripting
parenta6bf3b2b61453a72842ff03bc9f416a185d3fb35 (diff)
downloadmongo-378ba71fd2d98fcfd73deebd32376bdcee08df82.tar.gz
[SERVER-2284]: operations using system.js collection (group, mapred, where) always fail the 1st time on slave
Diffstat (limited to 'scripting')
-rw-r--r--scripting/engine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripting/engine.cpp b/scripting/engine.cpp
index 27a23f6f3c0..e696f70f2dd 100644
--- a/scripting/engine.cpp
+++ b/scripting/engine.cpp
@@ -183,7 +183,7 @@ namespace mongo {
string coll = _localDBName + ".system.js";
static DBClientBase * db = createDirectClient();
- auto_ptr<DBClientCursor> c = db->query( coll , Query() );
+ auto_ptr<DBClientCursor> c = db->query( coll , Query(), 0, 0, NULL, QueryOption_SlaveOk, 0 );
assert( c.get() );
set<string> thisTime;