Add merge tasks optimization to ConcurrentHashMapKeycloakTransaction.delete

This commit is contained in:
Martin Kanis 2022-03-21 11:29:27 +01:00 committed by Hynek Mlnařík
parent 92c4e6d585
commit 2394855f48

View file

@ -249,7 +249,7 @@ public class ConcurrentHashMapKeycloakTransaction<K, V extends AbstractEntity &
@Override @Override
public boolean delete(String key) { public boolean delete(String key) {
addTask(key, new DeleteOperation(key)); tasks.merge(key, new DeleteOperation(key), this::merge);
return true; return true;
} }