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

Fabio Pistolesi
21.56.2015 a83e38fbf8f02d0a47e691e01f3f77358016f1ef
OPENDJ-2205 FreeDiskSpaceRetentionPolicy cannot work

Walking the array with the wrong test will not walk the array.
1 files modified
2 ■■■ changed files
opendj-server-legacy/src/main/java/org/opends/server/loggers/FreeDiskSpaceRetentionPolicy.java 2 ●●● patch | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/loggers/FreeDiskSpaceRetentionPolicy.java
@@ -135,7 +135,7 @@
    List<File> filesToDelete = new ArrayList<>();
    long freedSpace = 0;
    for (int j = files.length - 1; j < 1; j--)
    for (int j = files.length - 1; j > 1; j--)
    {
      freedSpace += files[j].length();
      filesToDelete.add(files[j]);