allow to search for all longs

This commit is contained in:
2023-02-13 19:35:18 +01:00
parent 0d4078b59c
commit 7977882e93

View File

@@ -100,6 +100,9 @@ public class PersistentMap<K, V> implements AutoCloseable {
@Override
public byte[] encode(final Long object) {
if (object == null) {
return new byte[0];
}
return VariableByteEncoder.encode(object);
}
@@ -703,7 +706,7 @@ public class PersistentMap<K, V> implements AutoCloseable {
try {
if (version < 1) {
reindex();
} else {
} else if (false) {
final String reindexProperty = System.getProperty("pdb.reindex", "false");
if (!isNew && (reindexProperty.equals("true")
|| path.getParent().getFileName().toString().equals(reindexProperty))) {