From 4a3d5ed54d307967cbc4fceb0d015c7ca5613f8f Mon Sep 17 00:00:00 2001 From: anhefti Date: Tue, 9 Nov 2021 08:53:45 +0100 Subject: [PATCH] fixed potential DB deadlock cause --- .../session/impl/indicator/DistributedPingCache.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/session/impl/indicator/DistributedPingCache.java b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/session/impl/indicator/DistributedPingCache.java index e35bbdf5..5d170162 100644 --- a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/session/impl/indicator/DistributedPingCache.java +++ b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/session/impl/indicator/DistributedPingCache.java @@ -180,7 +180,7 @@ public class DistributedPingCache implements DisposableBean { } } - @Transactional + @Transactional(readOnly = true) public void updateCache() { if (this.pingCache.isEmpty()) {