I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit a4265a23 authored by zzz's avatar zzz
Browse files

BlockfileNamingService: Don't upgrade Android/ARM to version 4 for now,

too slow
parent b57b4324
No related branches found
No related tags found
No related merge requests found
...@@ -35,6 +35,7 @@ import net.i2p.data.Hash; ...@@ -35,6 +35,7 @@ import net.i2p.data.Hash;
import net.i2p.util.LHMCache; import net.i2p.util.LHMCache;
import net.i2p.util.Log; import net.i2p.util.Log;
import net.i2p.util.SecureFileOutputStream; import net.i2p.util.SecureFileOutputStream;
import net.i2p.util.SystemVersion;
import net.i2p.util.VersionComparator; import net.i2p.util.VersionComparator;
import net.metanotion.io.RAIFile; import net.metanotion.io.RAIFile;
...@@ -407,6 +408,12 @@ public class BlockfileNamingService extends DummyNamingService { ...@@ -407,6 +408,12 @@ public class BlockfileNamingService extends DummyNamingService {
// version 3 -> version 4 // version 3 -> version 4
// support multiple destinations per hostname // support multiple destinations per hostname
if (VersionComparator.comp(_version, "4") < 0) { if (VersionComparator.comp(_version, "4") < 0) {
// Upgrade of 4K entry DB on RPi 2 is over 2 1/2 minutes, disable for now
if (SystemVersion.isAndroid() || SystemVersion.isARM()) {
if (_log.shouldWarn())
_log.warn("Deferring upgrade to version 4 on Android/ARM");
return true;
}
SkipList<String, Properties> hdr = _bf.getIndex(INFO_SKIPLIST, _stringSerializer, _infoSerializer); SkipList<String, Properties> hdr = _bf.getIndex(INFO_SKIPLIST, _stringSerializer, _infoSerializer);
if (hdr == null) if (hdr == null)
throw new IOException("No db header"); throw new IOException("No db header");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment