moving towards direct access from DBDirectClient rather than through message layer

not finished
This commit is contained in:
Eliot Horowitz
2009-12-04 01:25:50 -05:00
parent f4d7fb2854
commit 2aec9ea61d
6 changed files with 84 additions and 19 deletions

View File

@@ -135,9 +135,11 @@ namespace mongo {
_loadedVersion = _lastVersion;
string coll = _localDBName + ".system.js";
auto_ptr<CursorIterator> i = Helpers::find( coll.c_str() );
while ( i->hasNext() ){
BSONObj o = i->next();
static DBClientBase * db = createDirectClient();
auto_ptr<DBClientCursor> c = db->query( coll , Query() );
while ( c->more() ){
BSONObj o = c->next();
BSONElement n = o["_id"];
BSONElement v = o["value"];