diff options
author | agirbal <antoine@10gen.com> | 2010-12-23 17:39:22 -0800 |
---|---|---|
committer | agirbal <antoine@10gen.com> | 2010-12-23 17:39:22 -0800 |
commit | 378ba71fd2d98fcfd73deebd32376bdcee08df82 (patch) | |
tree | d5e313728f260cf8ff1f0dae93864a5ef5009dea /scripting | |
parent | a6bf3b2b61453a72842ff03bc9f416a185d3fb35 (diff) | |
download | mongo-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.cpp | 2 |
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; |