Fix major bug
This commit is contained in:
parent
df946146a1
commit
26961125c0
2
pom.xml
2
pom.xml
@ -16,7 +16,7 @@
|
|||||||
<lucene.version>9.6.0</lucene.version>
|
<lucene.version>9.6.0</lucene.version>
|
||||||
<rocksdb.version>8.1.1.1</rocksdb.version>
|
<rocksdb.version>8.1.1.1</rocksdb.version>
|
||||||
<junit.jupiter.version>5.9.0</junit.jupiter.version>
|
<junit.jupiter.version>5.9.0</junit.jupiter.version>
|
||||||
<data.generator.version>1.0.9</data.generator.version>
|
<data.generator.version>1.0.10</data.generator.version>
|
||||||
</properties>
|
</properties>
|
||||||
<repositories>
|
<repositories>
|
||||||
<repository>
|
<repository>
|
||||||
|
@ -326,6 +326,9 @@ public class DatabaseMapDictionaryDeep<T, U, US extends DatabaseStage<U>> implem
|
|||||||
protected void serializeSuffixTo(T keySuffix, BufDataOutput output) throws SerializationException {
|
protected void serializeSuffixTo(T keySuffix, BufDataOutput output) throws SerializationException {
|
||||||
var beforeWriterOffset = output.size();
|
var beforeWriterOffset = output.size();
|
||||||
assert beforeWriterOffset == keyPrefixLength;
|
assert beforeWriterOffset == keyPrefixLength;
|
||||||
|
assert keySuffixSerializer.getSerializedBinaryLength() == keySuffixLength
|
||||||
|
: "Invalid key suffix serializer length: " + keySuffixSerializer.getSerializedBinaryLength()
|
||||||
|
+ ". Expected: " + keySuffixLength;
|
||||||
keySuffixSerializer.serialize(keySuffix, output);
|
keySuffixSerializer.serialize(keySuffix, output);
|
||||||
var afterWriterOffset = output.size();
|
var afterWriterOffset = output.size();
|
||||||
assert suffixKeyLengthConsistency(afterWriterOffset - beforeWriterOffset)
|
assert suffixKeyLengthConsistency(afterWriterOffset - beforeWriterOffset)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user