Skip to content

Commit e6a49a8

Browse files
authored
Improve the label in the withTransaction method (#1994)
1 parent cc644a1 commit e6a49a8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

driver-sync/src/main/com/mongodb/client/internal/ClientSessionImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ public <T> T withTransaction(final TransactionBody<T> transactionBody, final Tra
275275
MongoException lastError = null;
276276

277277
try {
278-
outer:
278+
transactionAttempts:
279279
while (true) {
280280
if (transactionAttempt > 0) {
281281
backoff(transactionAttempt, withTransactionTimeout, assertNotNull(lastError), timeoutMsConfigured);
@@ -326,7 +326,7 @@ public <T> T withTransaction(final TransactionBody<T> transactionBody, final Tra
326326
transactionSpan.spanFinalizing(true);
327327
}
328328
lastError = mongoException;
329-
continue outer;
329+
continue transactionAttempts;
330330
}
331331
throw mongoException;
332332
}

0 commit comments

Comments
 (0)