diff options
author | 2017-05-27 13:52:55 +0300 | |
---|---|---|
committer | 2017-05-27 13:52:55 +0300 | |
commit | dc430dec23586fd8a6ed3a0cc272f7cb1d8a8d88 (patch) | |
tree | f811cab95de96dd94f7dc6bf9f031944901883b8 /juick-server/src/main/java/com/juick | |
parent | 97e743385c94ac8a6084726d499c33373e255177 (diff) |
readonly mode is now provided by Cloudflare
Diffstat (limited to 'juick-server/src/main/java/com/juick')
-rw-r--r-- | juick-server/src/main/java/com/juick/service/MessagesService.java | 2 | ||||
-rw-r--r-- | juick-server/src/main/java/com/juick/service/MessagesServiceImpl.java | 6 |
2 files changed, 0 insertions, 8 deletions
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<Integer> getLastMessages(int hours); List<ResponseReply> 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; - } } |