Ejemplo n.º 1
0
  private static EnvironmentConfig newEnvConfig() {

    EnvironmentConfig config = new EnvironmentConfig();
    if (DbCompat.MEMORY_SUBSYSTEM) {
      DbCompat.setInitializeCache(config, true);
    }
    return config;
  }
Ejemplo n.º 2
0
  private static EnvironmentConfig newEnvConfig() {

    EnvironmentConfig config = new EnvironmentConfig();
    config.setTxnNoSync(Boolean.getBoolean(SharedTestUtils.NO_SYNC));
    if (DbCompat.MEMORY_SUBSYSTEM) {
      DbCompat.setInitializeCache(config, true);
    }
    return config;
  }
Ejemplo n.º 3
0
 void copyConfig(EnvironmentConfig copyToConfig) {
   DbCompat.setInitializeCache(copyToConfig, DbCompat.getInitializeCache(config));
   DbCompat.setInitializeLocking(copyToConfig, DbCompat.getInitializeLocking(config));
   DbCompat.setInitializeCDB(copyToConfig, DbCompat.getInitializeCDB(config));
   copyToConfig.setTransactional(config.getTransactional());
 }