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:
@@ -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;
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user