From 383ce941c2f3618132a58b9658c68442076b4020 Mon Sep 17 00:00:00 2001 From: Andrea Aime Date: Mon, 23 Sep 2024 12:33:15 +0200 Subject: [PATCH] Set disk quota store isolation to serializable --- .../main/java/org/geowebcache/diskquota/jdbc/JDBCQuotaStore.java | 1 + 1 file changed, 1 insertion(+) diff --git a/geowebcache/diskquota/jdbc/src/main/java/org/geowebcache/diskquota/jdbc/JDBCQuotaStore.java b/geowebcache/diskquota/jdbc/src/main/java/org/geowebcache/diskquota/jdbc/JDBCQuotaStore.java index 374cbd320..65e2ac4d6 100644 --- a/geowebcache/diskquota/jdbc/src/main/java/org/geowebcache/diskquota/jdbc/JDBCQuotaStore.java +++ b/geowebcache/diskquota/jdbc/src/main/java/org/geowebcache/diskquota/jdbc/JDBCQuotaStore.java @@ -126,6 +126,7 @@ public void setDataSource(DataSource dataSource) { DataSourceTransactionManager dsTransactionManager = new DataSourceTransactionManager(dataSource); this.tt = new TransactionTemplate(dsTransactionManager); + this.tt.setIsolationLevel(TransactionTemplate.ISOLATION_SERIALIZABLE); this.jt = new SimpleJdbcTemplate(dsTransactionManager.getDataSource()); }