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

boli
23.48.2007 59e6377da8399ae9ea13c3a41403067ba6834e80
Fix the issue where changing the time-interval of a logger doesn't work if the previous value is longer then the new value. If the previous 
value was set to a long time (ie 5 hours), the new value wouldn't take effect until the previous 5 hours has expired. With this fix, the new
value will take effect immediately by interrupting the rotator thread if its asleep.

Fix for issue 2103
1 files modified
6 ■■■■■ changed files
opends/src/server/org/opends/server/loggers/MultifileTextWriter.java 6 ●●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/loggers/MultifileTextWriter.java
@@ -343,6 +343,12 @@
  public void setInterval(long interval)
  {
    this.interval = interval;
    // Wake up the thread if its sleeping on the old interval
    if(rotaterThread.getState() == Thread.State.TIMED_WAITING)
    {
      rotaterThread.interrupt();
    }
  }
  /**