Changeset 29690 in osm for applications/editors/josm/plugins/imagerycache
- Timestamp:
- 2013-06-21T16:55:42+02:00 (11 years ago)
- Location:
- applications/editors/josm/plugins/imagerycache
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/imagerycache/build.xml
r29484 r29690 15 15 16 16 <!-- enter the SVN commit message --> 17 <property name="commit.message" value="JOSM/ImageryCache: updated MapDB (no more deadlocks, Java 1.6 compatible), less crashes, multiple-JOSM support"/>17 <property name="commit.message" value="JOSM/ImageryCache: add optional imagerycache.randomAccessFile parameter for slower but less system-dependent storage"/> 18 18 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 19 19 <property name="plugin.main.version" value="5779"/> -
applications/editors/josm/plugins/imagerycache/changelog
r29484 r29690 10 10 * Cache directory is created if needed 11 11 12 13 14 15 16 17 18 19 12 21.06.2013 : 13 * Add optional imagerycache.randomAccessFile parameter for slower but less system-dependent storage 14 (RandomAccessFile instead of memory mapped file) -
applications/editors/josm/plugins/imagerycache/src/org/openstreetmap/josm/plugins/imagerycache/OsmDBTilesLoader.java
r29484 r29690 18 18 import org.openstreetmap.gui.jmapviewer.interfaces.TileSource; 19 19 import org.openstreetmap.gui.jmapviewer.interfaces.TileSource.TileUpdate; 20 import org.openstreetmap.josm.Main;21 20 import org.openstreetmap.josm.data.preferences.BooleanProperty; 22 21 -
applications/editors/josm/plugins/imagerycache/src/org/openstreetmap/josm/plugins/imagerycache/TileDAOMapDB.java
r29484 r29690 3 3 import java.io.File; 4 4 import java.util.HashMap; 5 import java.util.HashSet;6 5 import java.util.Map; 7 import java.util.Map.Entry;8 import java.util.Set;9 6 import org.mapdb.DB; 10 7 import org.mapdb.DBMaker; … … 17 14 public class TileDAOMapDB implements TileDAO { 18 15 public static final boolean debug = new BooleanProperty("imagerycache.debug", false).get(); 16 public static final boolean noMmap = new BooleanProperty("imagerycache.randomAccessFile", false).get(); 19 17 20 18 public static boolean dbNotAvailable = false; … … 54 52 lock.deleteOnExit(); 55 53 56 db = DBMaker.newFileDB(f) 57 .randomAccessFileEnableIfNeeded() 58 .writeAheadLogDisable().closeOnJvmShutdown().make(); 54 if (noMmap) { 55 db = DBMaker.newFileDB(f) 56 .randomAccessFileEnable() 57 .writeAheadLogDisable().closeOnJvmShutdown().make(); 58 } else { 59 db = DBMaker.newFileDB(f) 60 .randomAccessFileEnableIfNeeded() 61 .writeAheadLogDisable().closeOnJvmShutdown().make(); 62 } 59 63 60 64
Note:
See TracChangeset
for help on using the changeset viewer.