aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/database/DataManager.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-07-11 23:23:21 +1200
committerGitHub <noreply@github.com>2016-07-11 23:23:21 +1200
commita4a127b5255cd62aae25419dbf289a926c5adbfd (patch)
tree05b99cf458f597806cde9617fe28c5bccd557c22 /src/org/traccar/database/DataManager.java
parent817360eee7dba57cf8b58e858f7acf60f27b5e68 (diff)
parent0bda01815c51b1f1e1d3e3eda592219eb39bf78b (diff)
downloadtrackermap-server-a4a127b5255cd62aae25419dbf289a926c5adbfd.tar.gz
trackermap-server-a4a127b5255cd62aae25419dbf289a926c5adbfd.tar.bz2
trackermap-server-a4a127b5255cd62aae25419dbf289a926c5adbfd.zip
Merge pull request #2099 from Abyss777/fix_groups_cache
Revert back groups cache and split refresh
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 {