Skip to content

Commit b5bad6b

Browse files
authored
docs(spanner): update isolation level terminology in comments (#15900)
1 parent 253b689 commit b5bad6b

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

google/cloud/spanner/transaction.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class Transaction {
8383
* absence of conflicts between its updates and any concurrent updates
8484
* that have occurred since that snapshot. Consequently, in contrast to
8585
* `kSerializable` transactions, only write-write conflicts are detected in
86-
* snapshot transactions.
86+
* repeatable read transactions.
8787
*/
8888
kRepeatableRead,
8989
};

google/cloud/spanner/transaction_test.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ TEST(Transaction, IsolationLevelPrecedence) {
188188
return 0;
189189
});
190190

191-
// Case 2: Fallback to client default
191+
// Case 2: Fallback to default options
192192
auto opts_default = Transaction::ReadWriteOptions();
193193
Transaction txn_default = MakeReadWriteTransaction(opts_default);
194194
spanner_internal::Visit(
@@ -202,7 +202,7 @@ TEST(Transaction, IsolationLevelPrecedence) {
202202
}
203203

204204
TEST(Transaction, IsolationLevelNotSpecified) {
205-
// Case: Isolation not specified in transaction level or client level
205+
// Case: Isolation not specified in transaction options or default options
206206
auto opts = Transaction::ReadWriteOptions();
207207
Transaction txn = MakeReadWriteTransaction(opts);
208208
spanner_internal::Visit(

0 commit comments

Comments
 (0)