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

Valery Kharseko
40 mins ago c69ef7be2dc5b28f9fa1b75547ba1e548ae5608e
opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/util/ConfigFromConnection.java
@@ -693,7 +693,7 @@
    DN suffixDn = sr.parseAttribute("domain-name").asDN();
    Integer replicaId = sr.parseAttribute("server-id").asInteger();
    Integer missingChanges = sr.parseAttribute("missing-changes").asInteger();
    Long missingChanges = sr.parseAttribute("missing-changes").asLong();
    if (suffixDn != null && replicaId != null && missingChanges != null)
    {
@@ -705,9 +705,12 @@
          {
            if (baseDN.getDn().equals(suffixDn) && Objects.equals(baseDN.getReplicaID(), replicaId))
            {
              baseDN.setAgeOfOldestMissingChange(
                  sr.parseAttribute("approx-older-change-not-synchronized-millis").asLong());
              baseDN.setMissingChanges(missingChanges);
              Long oldestChange = sr.parseAttribute("approx-older-change-not-synchronized-millis").asLong();
              if (oldestChange != null)
              {
                baseDN.setAgeOfOldestMissingChange(oldestChange);
              }
            }
          }
          catch (Throwable ignored)