Пример #1
0
 private void FlushIdFiles(NeoStores neoStores, StoreType[] storeTypes)
 {
     foreach (StoreType type in storeTypes)
     {
         if (type.RecordStore)
         {
             RecordStore <AbstractBaseRecord> recordStore = neoStores.GetRecordStore(type);
             Optional <File> idFile = _databaseLayout.idFile(type.DatabaseFile);
             idFile.ifPresent(f => _idGeneratorFactory.create(f, recordStore.HighId, false));
         }
     }
 }