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

increase cursor timeout to 10 minutes

This commit is contained in:
Aaron 2009-05-12 16:19:45 -04:00
parent f5efaa92ea
commit 6918975022

View File

@ -91,7 +91,7 @@ namespace mongo {
for ( ByLoc::iterator i = byLoc.begin(); i != byLoc.end(); ) {
ByLoc::iterator j = i;
i++;
if( (j->second->idleAgeMillis += millis) > 60000 ) {
if( (j->second->idleAgeMillis += millis) > 600000 ) {
log(2) << "killing old cursor " << j->second->cursorid << ' ' << j->second->ns << " idle:" << j->second->idleAgeMillis << "ms\n";
delete j->second;
}