Skip to content

Commit cad4256

Browse files
committed
chore(spanner): fix comment
1 parent dacdda7 commit cad4256

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

google-cloud-spanner/src/main/java/com/google/cloud/spanner/TransactionManagerImpl.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ public void commit() {
8181
txnState = TransactionState.COMMIT_FAILED;
8282
throw e2;
8383
} finally {
84-
// At this point, if the TransactionState is not ABORTED, then the transaction has reached a
85-
// terminal state.
84+
// At this point, if the TransactionState is not ABORTED, then the transaction has reached an
85+
// end state.
8686
// We can safely call close() to release resources.
8787
if (getState() != TransactionState.ABORTED) {
8888
close();
@@ -99,7 +99,7 @@ public void rollback() {
9999
txn.rollback();
100100
} finally {
101101
txnState = TransactionState.ROLLED_BACK;
102-
// At this point, the TransactionState is ROLLED_BACK which is a terminal state.
102+
// At this point, the TransactionState is ROLLED_BACK which is an end state.
103103
// We can safely call close() to release resources.
104104
close();
105105
}

0 commit comments

Comments
 (0)