distributed/src/main/java/com/orientechnologies/orient/server/hazelcast/OHazelcastPlugin.java
protected void initSystemDatabase() {
    final ODocument defaultCfg = getStorage(OSystemDatabase.SYSTEM_DB_NAME)
        .loadDatabaseConfiguration(getDefaultDatabaseConfigFile());
    defaultCfg.field("autoDeploy", false);
    final OModifiableDistributedConfiguration sysCfg = new OModifiableDistributedConfiguration(defaultCfg);
    sysCfg.removeServer("<NEW_NODE>");

    messageService.registerDatabase(OSystemDatabase.SYSTEM_DB_NAME, sysCfg);
    sysCfg.addNewNodeInServerList(getLocalNodeName());
  }
protected void initSystemDatabase() {
    final ODocument defaultCfg = getStorage(OSystemDatabase.SYSTEM_DB_NAME)
        .loadDatabaseConfiguration(getDefaultDatabaseConfigFile());
    defaultCfg.field("autoDeploy", false);
    final OModifiableDistributedConfiguration sysCfg = new OModifiableDistributedConfiguration(defaultCfg);
    sysCfg.removeServer("<NEW_NODE>");

    messageService.registerDatabase(OSystemDatabase.SYSTEM_DB_NAME, sysCfg);
    sysCfg.addNewNodeInServerList(getLocalNodeName());
  }
protected void initSystemDatabase ( ) { final ODocument defaultCfg = getStorage ( OSystemDatabase . SYSTEM_DB_NAME ) . loadDatabaseConfiguration ( getDefaultDatabaseConfigFile ( ) ) ; defaultCfg . field ( "autoDeploy" , false ) ; final OModifiableDistributedConfiguration sysCfg = new OModifiableDistributedConfiguration ( defaultCfg ) ; sysCfg . removeServer ( "<NEW_NODE>" ) ; messageService . registerDatabase ( OSystemDatabase . SYSTEM_DB_NAME , sysCfg ) ; sysCfg . addNewNodeInServerList ( getLocalNodeName ( ) ) ; }
Protecte system database from being replicated
Protecte system database from being replicated