[Fix] Don't read lock, if TX already has lock on element

This commit is contained in:
Robert von Burg 2023-02-24 14:09:59 +01:00
parent ca3793e60b
commit 76b3ae3c26
Signed by: eitch
GPG Key ID: 75DB9C85C74331F7
1 changed files with 3 additions and 0 deletions

View File

@ -312,6 +312,9 @@ public abstract class AbstractTransaction implements StrolchTransaction {
@Override
public <T extends StrolchRootElement> T readLock(T element) throws StrolchLockException {
if (hasLock(element))
return element;
lock(element);
Locator locator = element.getLocator();