/* todo: this implementation is incomplete. we use it as a prefix for dropDatabase, which
works fine as the prefix will end with '.'. however, when used with drop and
dropIndexes, this could take out cursors that belong to something else – if you
drop "foo", currently, this will kill cursors for "foobar".
*/
void ClientCursor::invalidate(const char *nsPrefix) {
This gets called for example when we drop a collection or an index in a collection, rename a collection, etc.
This also has implications for cases where we return partial data when a yield cursor is dropped.
- is depended on by
-
SERVER-2756 fewer than expected documents in capped3 test in parallel suite
- Closed
- is related to
-
SERVER-2454 Queries that are killed during a yield should return error to user instead of partial result set
- Closed