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 @Override
public boolean retainAll(Collection<?> c) { public boolean retainAll(Collection<?> c) {
int changed = 0;
RedisConnection<Object, Object> conn = redisson.connect(); RedisConnection<Object, Object> conn = redisson.connect();
try { try {
while (true) { while (true) {
int changed = 0;
conn.watch(name); conn.watch(name);
Iterator<V> iterator = (Iterator<V>) conn.smembers(name).iterator(); Iterator<V> iterator = (Iterator<V>) conn.smembers(name).iterator();
conn.multi(); conn.multi();

Loading…
Cancel
Save