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

Yannick Lecaillez
07.02.2016 80dce15c8ef24dcc10ea454b7697ad057bc87077
OPENDJ-3288: Upgrading from 2.6.x using compressed entry format to 3.5.0
results in unusable JE backends

Clear the compressedBuffer in release() so that it can be re-used
safely.
1 files modified
1 ■■■■ changed files
opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/ID2Entry.java 1 ●●●● patch | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/ID2Entry.java
@@ -137,6 +137,7 @@
    {
      encodedBuffer.clearAndTruncate(maxBufferSize, BUFFER_INIT_SIZE);
      entryBuffer.clearAndTruncate(maxBufferSize, BUFFER_INIT_SIZE);
      compressedEntryBuffer.clearAndTruncate(maxBufferSize, BUFFER_INIT_SIZE);
    }
    private Entry decode(ByteString bytes, CompressedSchema compressedSchema)