Changeset 29690 in osm for applications/editors/josm/plugins/imagerycache/src
- Timestamp:
- 2013-06-21T16:55:42+02:00 (12 years ago)
- Location:
- applications/editors/josm/plugins/imagerycache/src/org/openstreetmap/josm/plugins/imagerycache
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
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.