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

    _keysComputed = false;
    computeIndexKeys(opCtx);
    updatePlanCacheIndexEntries(opCtx);
}
Exemplo 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
 }
Exemplo n.º 3
0
 void CollectionInfoCache::reset() {
     Lock::assertWriteLocked( _collection->ns().ns() );
     LOG(1) << _collection->ns().ns() << ": clearing plan cache - collection info cache reset";
     clearQueryCache();
     _keysComputed = false;
     // query settings is not affected by info cache reset.
     // admin hints should persist throughout life of collection
 }
    void CollectionInfoCache::reset() {
        Lock::assertWriteLocked( _collection->ns().ns() );
        LOG(1) << _collection->ns().ns() << ": clearing plan cache - collection info cache reset";
        clearQueryCache();
        _keysComputed = false;
        // query settings is not affected by info cache reset.
        // index filters should persist throughout life of collection

        GeneratorHolder::getInstance()->reset( _collection );
    }
Exemplo n.º 5
0
 void CollectionInfoCache::reset() {
     Lock::assertWriteLocked( _collection->ns().ns() );
     clearQueryCache();
     _keysComputed = false;
     _planCache->clear();
 }