0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

call commitIfNeeded in DBDirectClient, mostly for js

This commit is contained in:
Eliot Horowitz 2011-01-11 01:15:54 -05:00
parent 8c9cc752e7
commit 640852ef60

View File

@ -644,6 +644,7 @@ namespace mongo {
assert( dbResponse.response );
dbResponse.response->concat(); // can get rid of this if we make response handling smarter
response = *dbResponse.response;
getDur().commitIfNeeded();
return true;
}
@ -652,6 +653,7 @@ namespace mongo {
lastError.startRequest( toSend, lastError._get() );
DbResponse dbResponse;
assembleResponse( toSend, dbResponse );
getDur().commitIfNeeded();
}
auto_ptr<DBClientCursor> DBDirectClient::query(const string &ns, Query query, int nToReturn , int nToSkip ,