Exemple #1
0
 private ThrowingAction <Exception> DropAndReCreateIndex(IndexReference descriptor, SchemaDescriptor newDescriptor)
 {
     return(() =>
     {
         _aliceLatch.await();
         _bobLatch.await();
         using (KernelTransactionImplementation transaction = KernelTransaction)
         {
             SchemaWrite schemaWrite = transaction.schemaWrite();
             schemaWrite.indexDrop(descriptor);
             schemaWrite.indexCreate(newDescriptor, FulltextIndexProviderFactory.Descriptor.name(), "nodes");
             transaction.success();
         }
     });
 }