SGF-101 - Fixed repositories deleteAll() for partitioned regions.

Changed simply clearing the region to iterating over the keys and removing every value for the given key.
This commit is contained in:
Oliver Gierke
2012-07-16 09:13:54 +02:00
parent 0d84ef62ad
commit be8d6b8fb8
6 changed files with 107 additions and 10 deletions

View File

@@ -149,7 +149,11 @@ public class SimpleGemfireRepository<T, ID extends Serializable> implements Gemf
template.execute(new GemfireCallback<Void>() {
@SuppressWarnings("rawtypes")
public Void doInGemfire(Region region) {
region.clear();
for (Object key : region.keySet()) {
region.remove(key);
}
return null;
}
});