|
/* 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.
|