mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

pgamba
15.50.2007 0ef56d4515f70530da93570f9af3a0744fe77d12
opends/src/server/org/opends/server/replication/server/ServerHandler.java
@@ -359,7 +359,25 @@
        }
        else
        {
          replicationCache.setGenerationId(generationId, false);
          // We are an empty Replicationserver
          if ((generationId>0)&&(!serverState.isEmpty()))
          {
            // If the LDAP server has already sent changes
            // it is not expected to connect to an empty RS
            Message message = NOTE_BAD_GENERATION_ID.get(
                receivedMsg.getBaseDn().toNormalizedString(),
                Short.toString(receivedMsg.getServerId()),
                Long.toString(generationId),
                Long.toString(localGenerationId));
            ErrorMessage errorMsg =
              new ErrorMessage(replicationServerId, serverId, message);
            session.publish(errorMsg);
          }
          else
          {
            replicationCache.setGenerationId(generationId, false);
          }
        }
      }
      else if (msg instanceof ReplServerStartMessage)