Skip to content

Commit f07b1d1

Browse files
committed
sql: fix spelling of committed
Fixes the spelling in the sql package. ``` (c|C)ommited $1ommitted pkg/sql/ ``` Epic: none Release note: None
1 parent b8c2405 commit f07b1d1

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

pkg/sql/alter_table.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2508,7 +2508,7 @@ func (p *planner) checkSchemaChangeIsAllowed(
25082508
ctx context.Context, desc catalog.TableDescriptor, n tree.Statement,
25092509
) (ret error) {
25102510
// Adding descriptors can be skipped.
2511-
if desc == nil || desc.Adding() || p.descCollection.IsNewUncommitedDescriptor(desc.GetID()) {
2511+
if desc == nil || desc.Adding() || p.descCollection.IsNewUncommittedDescriptor(desc.GetID()) {
25122512
return nil
25132513
}
25142514
// Check if this schema change is on the allowed list, which will only

pkg/sql/catalog/descs/collection.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,9 +258,9 @@ func (tc *Collection) HasUncommittedDescriptors() bool {
258258
return tc.uncommitted.uncommitted.Len() > 0
259259
}
260260

261-
// IsNewUncommitedDescriptor returns true if the descriptor is newly created
261+
// IsNewUncommittedDescriptor returns true if the descriptor is newly created
262262
// within this txn.
263-
func (tc *Collection) IsNewUncommitedDescriptor(id descpb.ID) bool {
263+
func (tc *Collection) IsNewUncommittedDescriptor(id descpb.ID) bool {
264264
if desc := tc.uncommitted.mutable.Get(id); desc != nil && desc.(catalog.MutableDescriptor).IsNew() {
265265
return true
266266
}

pkg/sql/catalog/typedesc/type_desc_builder.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,10 +204,10 @@ func (tdb *typeDescriptorBuilder) BuildExistingMutableType() *Mutable {
204204
tdb.maybeModified = protoutil.Clone(tdb.original).(*descpb.TypeDescriptor)
205205
}
206206
mutableType := makeImmutable(tdb.maybeModified,
207-
false /* isUncommitedVersion */, tdb.changes)
207+
false /* isUncommittedVersion */, tdb.changes)
208208
mutableType.rawBytesInStorage = append([]byte(nil), tdb.rawBytesInStorage...) // deep-copy
209209
clusterVersion := makeImmutable(tdb.original,
210-
false /* isUncommitedVersion */, catalog.PostDeserializationChanges{})
210+
false /* isUncommittedVersion */, catalog.PostDeserializationChanges{})
211211
return &Mutable{
212212
immutable: mutableType,
213213
ClusterVersion: &clusterVersion,

pkg/sql/internal.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1323,7 +1323,7 @@ func (ie *InternalExecutor) execInternal(
13231323
ParseStart: parseStart,
13241324
ParseEnd: parseEnd,
13251325
// This is the only and last statement in the batch, so that this
1326-
// transaction can be autocommited as a single statement transaction.
1326+
// transaction can be autocommitted as a single statement transaction.
13271327
LastInBatch: true,
13281328
}); err != nil {
13291329
return nil, err

pkg/sql/logictest/testdata/logic_test/two_phase_commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ NoTxn
152152
statement ok
153153
COMMIT PREPARED 'duplicate'
154154

155-
# Verify the intent for a=2 has been commited and the intent for a=3 has been
155+
# Verify the intent for a=2 has been committed and the intent for a=3 has been
156156
# rolled back.
157157
query I
158158
SELECT * FROM t ORDER BY a

pkg/sql/opt/locking.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ type Locking struct {
6060
// the durability defaults to best-effort. We currently only require
6161
// guaranteed-durable locks for SELECT FOR UPDATE statements and
6262
// system-maintained constraint checks (e.g. FK checks) under snapshot and
63-
// read commited isolation. Other locking statements, such as UPDATE, rely on
63+
// read committed isolation. Other locking statements, such as UPDATE, rely on
6464
// the durability of intents for correctness, rather than the durability of
6565
// locks.
6666
Durability tree.LockingDurability

pkg/sql/txn_restart_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1331,7 +1331,7 @@ SELECT * from t.test WHERE k = 'test_key';
13311331
//
13321332
// This test triggers the above scenario by triggering a restart by returning
13331333
// ReadWithinUncertaintyIntervalError on the first transaction attempt.
1334-
func TestFlushUncommitedDescriptorCacheOnRestart(t *testing.T) {
1334+
func TestFlushUncommittedDescriptorCacheOnRestart(t *testing.T) {
13351335
defer leaktest.AfterTest(t)()
13361336
defer log.Scope(t).Close(t)
13371337

0 commit comments

Comments
 (0)