From dc430dec23586fd8a6ed3a0cc272f7cb1d8a8d88 Mon Sep 17 00:00:00 2001 From: you Date: Sat, 27 May 2017 13:52:55 +0300 Subject: readonly mode is now provided by Cloudflare --- juick-server/src/main/java/com/juick/service/MessagesService.java | 2 -- .../src/main/java/com/juick/service/MessagesServiceImpl.java | 6 ------ 2 files changed, 8 deletions(-) (limited to 'juick-server/src/main/java/com') diff --git a/juick-server/src/main/java/com/juick/service/MessagesService.java b/juick-server/src/main/java/com/juick/service/MessagesService.java index 8948f083..8e9d916b 100644 --- a/juick-server/src/main/java/com/juick/service/MessagesService.java +++ b/juick-server/src/main/java/com/juick/service/MessagesService.java @@ -85,6 +85,4 @@ public interface MessagesService { List getLastMessages(int hours); List getLastReplies(int hours); - - boolean isReadonly(); } diff --git a/juick-server/src/main/java/com/juick/service/MessagesServiceImpl.java b/juick-server/src/main/java/com/juick/service/MessagesServiceImpl.java index 11ea0cbf..318b5805 100644 --- a/juick-server/src/main/java/com/juick/service/MessagesServiceImpl.java +++ b/juick-server/src/main/java/com/juick/service/MessagesServiceImpl.java @@ -811,10 +811,4 @@ public class MessagesServiceImpl extends BaseJdbcService implements MessagesServ return reply; }, -hours); } - - @Transactional(readOnly = true) - @Override - public boolean isReadonly() { - return getJdbcTemplate().queryForObject("SELECT @@global.read_only", Integer.class) > 0; - } } -- cgit v1.2.3