We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 74e4c21 commit 261a871Copy full SHA for 261a871
1 file changed
mcc/src/org/labkey/mcc/query/TriggerHelper.java
@@ -47,6 +47,7 @@
47
import java.util.HashSet;
48
import java.util.List;
49
import java.util.Map;
50
+import java.util.Objects;
51
import java.util.Set;
52
import java.util.concurrent.atomic.AtomicInteger;
53
import java.util.stream.Collectors;
@@ -299,7 +300,7 @@ private TableInfo getMappingTable()
299
300
301
public int ensureMccAliasExists(Collection<String> rawIds, Map<Object, Object> existingAliases)
302
{
- if (!DbScope.getLabKeyScope().isTransactionActive())
303
+ if (DbScope.getLabKeyScope().getCurrentTransaction() != null && Objects.requireNonNull(DbScope.getLabKeyScope().getCurrentTransaction()).isAborted())
304
305
_log.info("No active transaction, skipping MCC ensureMccAliasExists()");
306
return 0;
0 commit comments