aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-07-10 20:38:46 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2016-07-10 20:38:46 +1200
commitdd8dc4da9ad4b48e92b6d1f3f2d82fec05676a2a (patch)
tree9a528c342d6c4ef49a8daa6b9bdce998152500fc /src/org/traccar
parentfc7d01e6ab414b8eba9b112b3dc74e5099e1d94a (diff)
downloadtrackermap-server-dd8dc4da9ad4b48e92b6d1f3f2d82fec05676a2a.tar.gz
trackermap-server-dd8dc4da9ad4b48e92b6d1f3f2d82fec05676a2a.tar.bz2
trackermap-server-dd8dc4da9ad4b48e92b6d1f3f2d82fec05676a2a.zip
Disable group cache updates
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/database/DataManager.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/org/traccar/database/DataManager.java b/src/org/traccar/database/DataManager.java
index 031703023..2d3b75db7 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 {
@@ -356,7 +356,7 @@ public class DataManager implements IdentityManager {
boolean forceUpdate;
devicesLock.readLock().lock();
try {
- forceUpdate = devicesById.values().isEmpty();
+ forceUpdate = devicesById.isEmpty();
} finally {
devicesLock.readLock().unlock();
}