From a5131f44a6afa554af8f4c82c7ffd3d4ceac1bd4 Mon Sep 17 00:00:00 2001
From: Matthew Swift <matthew.swift@forgerock.com>
Date: Fri, 04 Feb 2011 12:50:58 +0000
Subject: [PATCH] OPEN - issue OPENDJ-26: Fix OpenDS issue 4585: ConcurrentModificationException in ReplicationBroker  https://bugster.forgerock.org/jira/browse/OPENDJ-26

---
 opends/src/server/org/opends/server/replication/plugin/ReplayThread.java |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/opends/src/server/org/opends/server/replication/plugin/ReplayThread.java b/opends/src/server/org/opends/server/replication/plugin/ReplayThread.java
index 1899935..c964423 100644
--- a/opends/src/server/org/opends/server/replication/plugin/ReplayThread.java
+++ b/opends/src/server/org/opends/server/replication/plugin/ReplayThread.java
@@ -23,6 +23,7 @@
  *
  *
  *      Copyright 2006-2008 Sun Microsystems, Inc.
+ *      Portions Copyright 2011 ForgeRock AS
  */
 package org.opends.server.replication.plugin;
 import org.opends.server.replication.protocol.LDAPUpdateMsg;
@@ -54,9 +55,9 @@
    */
   private static final DebugTracer TRACER = getTracer();
 
-  private BlockingQueue<UpdateToReplay> updateToReplayQueue = null;
-  private boolean shutdown = false;
-  private boolean done = false;
+  private final BlockingQueue<UpdateToReplay> updateToReplayQueue;
+  private volatile boolean shutdown = false;
+  private volatile boolean done = false;
   private static int count = 0;
 
   /**

--
Gitblit v1.10.0