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

jcduff
23.04.2008 f73b655466092169abac34833fb628fce1fcdebe
opends/src/server/org/opends/server/replication/server/ReplicationDB.java
@@ -36,7 +36,7 @@
import org.opends.server.types.DN;
import org.opends.server.replication.common.ChangeNumber;
import org.opends.server.replication.protocol.UpdateMessage;
import org.opends.server.replication.protocol.UpdateMsg;
import java.util.concurrent.locks.ReentrantReadWriteLock;
import com.sleepycat.je.Cursor;
@@ -100,7 +100,7 @@
   *
   * @param changes The list of changes to add to the underlying db.
   */
  public void addEntries(List<UpdateMessage> changes)
  public void addEntries(List<UpdateMsg> changes)
  {
    Transaction txn = null;
@@ -120,7 +120,7 @@
        {
          txn = dbenv.beginTransaction();
          for (UpdateMessage change : changes)
          for (UpdateMsg change : changes)
          {
            DatabaseEntry key = new ReplicationKey(change.getChangeNumber());
            DatabaseEntry data = new ReplicationData(change);
@@ -133,7 +133,8 @@
        }
        catch (DeadlockException e)
        {
          txn.abort();
          if (txn != null)
            txn.abort();
          txn = null;
        }
        finally
@@ -591,13 +592,13 @@
    }
    /**
     * Get the next UpdateMessage from this cursor.
     * Get the next UpdateMsg from this cursor.
     *
     * @return the next UpdateMessage.
     * @return the next UpdateMsg.
     */
    public UpdateMessage next()
    public UpdateMsg next()
    {
      UpdateMessage currentChange = null;
      UpdateMsg currentChange = null;
      while (currentChange == null)
      {
        try