[Fix] Don't read lock, if TX already has lock on element
This commit is contained in:
parent
ca3793e60b
commit
76b3ae3c26
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue