void CollectionInfoCacheImpl::rebuildIndexData(OperationContext* opCtx) {
    clearQueryCache();

    _keysComputed = false;
    computeIndexKeys(opCtx);
    updatePlanCacheIndexEntries(opCtx);
}
Ejemplo n.º 2
0
 void CollectionInfoCache::reset( OperationContext* txn ) {
     LOG(1) << _collection->ns().ns() << ": clearing plan cache - collection info cache reset";
     clearQueryCache();
     _keysComputed = false;
     computeIndexKeys( txn );
     // query settings is not affected by info cache reset.
     // index filters should persist throughout life of collection
 }