Raven.Database.Storage.IndexDefinitionStorage.UpdateIndexDefinitionWithoutUpdatingCompiledIndex C# (CSharp) Method

UpdateIndexDefinitionWithoutUpdatingCompiledIndex() public method

public UpdateIndexDefinitionWithoutUpdatingCompiledIndex ( Raven.Database.Indexing.IndexDefinition definition ) : void
definition Raven.Database.Indexing.IndexDefinition
return void
        public void UpdateIndexDefinitionWithoutUpdatingCompiledIndex(IndexDefinition definition)
        {
			var fixedName = FixupIndexName(definition.Name);

			indexDefinitions.AddOrUpdate(fixedName, s => 
            {
                throw new InvalidOperationException("Cannot find index named: " + definition.Name);
            }, (s, indexDefinition) => definition);
            WriteIndexDefinition(definition);
        }