retainAll fixed

pull/6/head
Nikita 11 years ago
parent abba78c8b7
commit 022b72cc06

@ -75,10 +75,10 @@ public class RedissonSet<V> implements Set<V> {
@Override
public boolean retainAll(Collection<?> c) {
int changed = 0;
RedisConnection<Object, Object> conn = redisson.connect();
try {
while (true) {
int changed = 0;
conn.watch(name);
Iterator<V> iterator = (Iterator<V>) conn.smembers(name).iterator();
conn.multi();

Loading…
Cancel
Save