aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/database/DataManager.java
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2016-07-11 14:25:27 +0500
committerAbyss777 <abyss@fox5.ru>2016-07-11 14:25:27 +0500
commit0bda01815c51b1f1e1d3e3eda592219eb39bf78b (patch)
tree9d09253e6590c4d26819214eb79c2f37ab18ce70 /src/org/traccar/database/DataManager.java
parentfe9ab15104d36a5d8d01375f9540d59a835bce5e (diff)
downloadtrackermap-server-0bda01815c51b1f1e1d3e3eda592219eb39bf78b.tar.gz
trackermap-server-0bda01815c51b1f1e1d3e3eda592219eb39bf78b.tar.bz2
trackermap-server-0bda01815c51b1f1e1d3e3eda592219eb39bf78b.zip
- Split geofence refresh on 3 functions
- Enable back groupsCache
Diffstat (limited to 'src/org/traccar/database/DataManager.java')
-rw-r--r--src/org/traccar/database/DataManager.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/database/DataManager.java b/src/org/traccar/database/DataManager.java
index 2d3b75db7..b3f24383f 100644
--- a/src/org/traccar/database/DataManager.java
+++ b/src/org/traccar/database/DataManager.java
@@ -241,7 +241,7 @@ public class DataManager implements IdentityManager {
}
public Group getGroupById(long id) {
- /*boolean forceUpdate;
+ boolean forceUpdate;
groupsLock.readLock().lock();
try {
forceUpdate = !groupsById.containsKey(id);
@@ -253,7 +253,7 @@ public class DataManager implements IdentityManager {
updateGroupCache(forceUpdate);
} catch (SQLException e) {
Log.warning(e);
- }*/
+ }
groupsLock.readLock().lock();
try {