From e131e3cef7357a2f5acdc3d86979b8c5486ca71b Mon Sep 17 00:00:00 2001
From: Matthew Swift <matthew.swift@forgerock.com>
Date: Tue, 20 Mar 2012 11:19:25 +0000
Subject: [PATCH] Fix OPENDJ-457: Sleeping replication threads prevent server from shutting down
---
opends/src/server/org/opends/server/core/ServerShutdownMonitor.java | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/opends/src/server/org/opends/server/core/ServerShutdownMonitor.java b/opends/src/server/org/opends/server/core/ServerShutdownMonitor.java
index c16952c..5607ecf 100644
--- a/opends/src/server/org/opends/server/core/ServerShutdownMonitor.java
+++ b/opends/src/server/org/opends/server/core/ServerShutdownMonitor.java
@@ -23,6 +23,7 @@
*
*
* Copyright 2006-2009 Sun Microsystems, Inc.
+ * Portions copyright 2012 ForgeRock AS.
*/
package org.opends.server.core;
@@ -43,7 +44,7 @@
{
// Indicates whether the monitor has completed and the shutdown may be
// finalized with a call to System.exit;
- private boolean monitorDone;
+ private volatile boolean monitorDone;
// The list of threads that need to be monitored.
private LinkedList<Thread> threadList;
--
Gitblit v1.10.0