allow to search for all longs
This commit is contained in:
@@ -100,6 +100,9 @@ public class PersistentMap<K, V> implements AutoCloseable {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public byte[] encode(final Long object) {
|
public byte[] encode(final Long object) {
|
||||||
|
if (object == null) {
|
||||||
|
return new byte[0];
|
||||||
|
}
|
||||||
return VariableByteEncoder.encode(object);
|
return VariableByteEncoder.encode(object);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -703,7 +706,7 @@ public class PersistentMap<K, V> implements AutoCloseable {
|
|||||||
try {
|
try {
|
||||||
if (version < 1) {
|
if (version < 1) {
|
||||||
reindex();
|
reindex();
|
||||||
} else {
|
} else if (false) {
|
||||||
final String reindexProperty = System.getProperty("pdb.reindex", "false");
|
final String reindexProperty = System.getProperty("pdb.reindex", "false");
|
||||||
if (!isNew && (reindexProperty.equals("true")
|
if (!isNew && (reindexProperty.equals("true")
|
||||||
|| path.getParent().getFileName().toString().equals(reindexProperty))) {
|
|| path.getParent().getFileName().toString().equals(reindexProperty))) {
|
||||||
|
|||||||
Reference in New Issue
Block a user