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

boli
15.24.2007 5b971d4365f91f23d08458b299edac93efe56122
Fixed an issue where the size based rotation policy does not account for the size of existing log files when inforcing the policy.

Fix for issue 2272
1 files modified
2 ■■■ changed files
opendj-sdk/opends/src/server/org/opends/server/loggers/MultifileTextWriter.java 2 ●●● patch | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/loggers/MultifileTextWriter.java
@@ -177,7 +177,7 @@
    }
    FileOutputStream stream = new FileOutputStream(file, append);
    outputStream = new MeteredStream(stream, 0);
    outputStream = new MeteredStream(stream, file.length());
    OutputStreamWriter osw = new OutputStreamWriter(outputStream, encoding);
    BufferedWriter bw = null;