From 2447009f9967d73461a4ee26e24f8d1f824d16aa Mon Sep 17 00:00:00 2001 From: anhefti Date: Tue, 9 Nov 2021 09:02:01 +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()) {