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

Matthew Swift
07.53.2013 984ba7b145520f02414eedf36b88946172ef4dd3
opends/src/server/org/opends/server/replication/server/changelog/je/JEReplicaDB.java
@@ -198,7 +198,7 @@
      queueByteSize += update.size();
      msgQueue.add(update);
      if (newestCSN == null || newestCSN.older(update.getCSN()))
      if (newestCSN == null || newestCSN.isOlderThan(update.getCSN()))
      {
        newestCSN = update.getCSN();
      }
@@ -456,7 +456,7 @@
              return;
            }
            if (!csn.equals(newestCSN) && csn.older(trimDate))
            if (!csn.equals(newestCSN) && csn.isOlderThan(trimDate))
            {
              cursor.delete();
            }
@@ -659,7 +659,7 @@
  {
    // Now that we always keep the last CSN in the DB to avoid expiring cookies
    // too quickly, we need to check if the "to" is older than the trim date.
    if (to == null || !to.older(new CSN(latestTrimDate, 0, 0)))
    if (to == null || !to.isOlderThan(new CSN(latestTrimDate, 0, 0)))
    {
      flush();
      return db.count(from, to);