mirror of
https://github.com/usatiuk/dhfs.git
synced 2025-10-29 04:57:48 +01:00
Server: allow adding mutators to copied objects
for now, at least
This commit is contained in:
@@ -367,9 +367,12 @@ public class JObjectTxManager {
|
||||
//TODO: Asserts for rwLock/rwLockNoCopy?
|
||||
|
||||
var got = state._writeObjects.get(obj);
|
||||
if (got == null) throw new IllegalStateException("Object not in transaction");
|
||||
if (got._copy)
|
||||
throw new IllegalStateException("Mutating object locked with copy?");
|
||||
if (got == null)
|
||||
throw new IllegalStateException("Object not in transaction");
|
||||
if (got._copy) {
|
||||
Log.trace("Ignoring mutator for copied object: " + obj.getMeta().getName());
|
||||
return;
|
||||
}
|
||||
got._mutators.addLast(mut);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user