internal IndexTransactionCache BuildStreamCacheAfterTx(Transaction tx) { var newCache = new IndexTransactionCache(); FillCollectionEtags(tx, newCache.Collections); var directoryFiles = new IndexTransactionCache.DirectoryFiles(); newCache.DirectoriesByName[_directory.Name] = directoryFiles; FillLuceneFilesChunks(tx, directoryFiles.ChunksByName, _directory.Name); foreach (var(name, _) in _suggestionsDirectories) { directoryFiles = new IndexTransactionCache.DirectoryFiles(); newCache.DirectoriesByName[name] = directoryFiles; FillLuceneFilesChunks(tx, directoryFiles.ChunksByName, name); } return(newCache); }
public void PublishIndexCacheToNewTransactions(IndexTransactionCache transactionCache) { _streamsCache = transactionCache; }