Skip to content

Commit

Permalink
Disable SYNC command #319
Browse files Browse the repository at this point in the history
  • Loading branch information
mp911de committed Jul 24, 2016
1 parent e6581f4 commit 71b7617
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 15 deletions.
Expand Up @@ -288,6 +288,7 @@ public interface RedisServerAsyncConnection<K, V> {
*
* @return RedisFuture&lt;String&gt;
*/
@Deprecated
RedisFuture<String> sync();

/**
Expand Down
Expand Up @@ -285,8 +285,9 @@ public interface RedisServerConnection<K, V> extends RedisServerCommands<K, V> {
/**
* Internal command used for replication.
*
* @return String simple-string-reply The commands returns OK on success.
* @return String simple-string-reply
*/
@Deprecated
String sync();

/**
Expand Down
Expand Up @@ -316,8 +316,9 @@ public interface RedisServerAsyncCommands<K, V> {
/**
* Internal command used for replication.
*
* @return String simple-string-reply The commands returns OK on success.
* @return String simple-string-reply
*/
@Deprecated
RedisFuture<String> sync();

/**
Expand Down
Expand Up @@ -319,8 +319,9 @@ public interface RedisServerReactiveCommands<K, V> {
/**
* Internal command used for replication.
*
* @return String simple-string-reply The commands returns OK on success.
* @return String simple-string-reply
*/
@Deprecated
Observable<String> sync();

/**
Expand Down
Expand Up @@ -313,8 +313,9 @@ public interface RedisServerCommands<K, V> {
/**
* Internal command used for replication.
*
* @return String simple-string-reply The commands returns OK on success.
*/
* @return String simple-string-reply
*
* @Deprecated/
String sync();
/**
Expand Down
Expand Up @@ -297,8 +297,9 @@ public interface NodeSelectionServerAsyncCommands<K, V> {
/**
* Internal command used for replication.
*
* @return String simple-string-reply The commands returns OK on success.
* @return String simple-string-reply
*/
@Deprecated
AsyncExecutions<String> sync();

/**
Expand Down
Expand Up @@ -296,8 +296,9 @@ public interface NodeSelectionServerCommands<K, V> {
/**
* Internal command used for replication.
*
* @return String simple-string-reply The commands returns OK on success.
* @return String simple-string-reply
*/
@Deprecated
Executions<String> sync();

/**
Expand Down
Expand Up @@ -317,8 +317,9 @@ public interface RedisServerCommands<K, V> {
/**
* Internal command used for replication.
*
* @return String simple-string-reply The commands returns OK on success.
* @return String simple-string-reply
*/
@Deprecated
String sync();

/**
Expand Down
Expand Up @@ -328,11 +328,4 @@ public void slowlog() throws Exception {

redis.configSet("slowlog-log-slower-than", "10000");
}

@Test
@Ignore("Run me manually, I eat up 5 seconds.")
public void sync() throws Exception {
assertThat(redis.sync().startsWith("REDIS")).isTrue();
}

}

0 comments on commit 71b7617

Please sign in to comment.