[SERVER-2284]: operations using system.js collection (group, mapred, where) always fail the 1st time on slave

This commit is contained in:
agirbal
2010-12-23 17:39:22 -08:00
parent a6bf3b2b61
commit 378ba71fd2
2 changed files with 67 additions and 1 deletions

View File

@@ -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;