Skip to content

Commit 382431d

Browse files
Use ensureTransaction instead of beginTransaction (#189)
1 parent b94f1d6 commit 382431d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

laboratory/src/org/labkey/laboratory/LaboratoryManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public synchronized void recursivelyInitWorkbooksForContainer(User u, Container
121121

122122
if (!rows.isEmpty())
123123
{
124-
try (DbScope.Transaction t = workbookDbTable.getSchema().getScope().beginTransaction())
124+
try (DbScope.Transaction t = workbookDbTable.getSchema().getScope().ensureTransaction())
125125
{
126126
rows.forEach(wb -> Table.insert(u, workbookDbTable, wb));
127127
t.commit();

0 commit comments

Comments
 (0)