Remove em.refresh(realm) call during realm removal in JpaRealmProvider

Closes #19430
This commit is contained in:
vramik 2023-03-30 11:01:47 +02:00 committed by Hynek Mlnařík
parent 17022ad13c
commit 5aafc99673

View file

@ -166,7 +166,6 @@ public class JpaRealmProvider implements RealmProvider, ClientProvider, ClientSc
if (realm == null) { if (realm == null) {
return false; return false;
} }
em.refresh(realm);
final RealmAdapter adapter = new RealmAdapter(session, em, realm); final RealmAdapter adapter = new RealmAdapter(session, em, realm);
session.users().preRemove(adapter); session.users().preRemove(adapter);