Skip to content

Commit 640fc15

Browse files
committed
correct fix for SERVER-3002
1 parent 9425603 commit 640fc15

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

s/cursors.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,8 @@ namespace mongo {
276276
log() << "killing old cursor " << i->second->getId() << " idle for: " << idleFor << "ms" << endl; // TODO: make log(1)
277277
_cursors.erase( i );
278278
i = _cursors.begin(); // possible 2nd entry will get skipped, will get on next pass
279+
if ( i == _cursors.end() )
280+
break;
279281
}
280282
}
281283

0 commit comments

Comments
 (0)