diff options
Diffstat (limited to 'internal/gitaly/storage/storagemgr')
3 files changed, 7 insertions, 7 deletions
diff --git a/internal/gitaly/storage/storagemgr/partition_manager.go b/internal/gitaly/storage/storagemgr/partition_manager.go index 045da1d0a..ad36f4f5e 100644 --- a/internal/gitaly/storage/storagemgr/partition_manager.go +++ b/internal/gitaly/storage/storagemgr/partition_manager.go @@ -178,7 +178,7 @@ func (sm *storageManager) newFinalizableTransaction(ptn *partition, tx *Transact type partition struct { // closing is closed when the partition has no longer any active transactions. closing chan struct{} - // transactionManagerClosed is closed to signal when the partition's TranscationManager.Run has returned. + // transactionManagerClosed is closed to signal when the partition's TransactionManager.Run has returned. // Clients stumbling on the partition when it is closing wait on this channel to know when the previous // TransactionManager has closed and it is safe to start another one. transactionManagerClosed chan struct{} diff --git a/internal/gitaly/storage/storagemgr/transaction_manager.go b/internal/gitaly/storage/storagemgr/transaction_manager.go index 59dce61cd..bd7653a04 100644 --- a/internal/gitaly/storage/storagemgr/transaction_manager.go +++ b/internal/gitaly/storage/storagemgr/transaction_manager.go @@ -200,7 +200,7 @@ type Transaction struct { // Transaction queues in admissionQueue to be committed, and is considered admitted once it has // been dequeued by TransactionManager.Run(). Once the transaction is admitted, its ownership moves // from the client goroutine to the TransactionManager.Run() goroutine, and the client goroutine must - // not do any modifications to the state of the transcation anymore to avoid races. + // not do any modifications to the state of the transaction anymore to avoid races. admitted bool // finish cleans up the transaction releasing the resources associated with it. It must be called // once the transaction is done with. @@ -1417,7 +1417,7 @@ func (mgr *TransactionManager) isClosing() bool { } } -// initialize initializes the TransactionManager's state from the database. It loads the appendend and the applied +// initialize initializes the TransactionManager's state from the database. It loads the appended and the applied // LSNs and initializes the notification channels that synchronize transaction beginning with log entry applying. func (mgr *TransactionManager) initialize(ctx context.Context) error { defer close(mgr.initialized) @@ -1444,7 +1444,7 @@ func (mgr *TransactionManager) initialize(ctx context.Context) error { mgr.appendedLSN = mgr.appliedLSN - // The iterator seeks to a key that is greater than or equal than seeked key. Since we are doing a reverse + // The iterator seeks to a key that is greater than or equal than sought key. Since we are doing a reverse // seek, we need to add 0xff to the prefix so the first iterated key is the latest log entry. if iterator.Seek(append(logPrefix, 0xff)); iterator.Valid() { mgr.appendedLSN = LSN(binary.BigEndian.Uint64(bytes.TrimPrefix(iterator.Item().Key(), logPrefix))) @@ -1785,7 +1785,7 @@ func (mgr *TransactionManager) verifyReferencesWithGit(ctx context.Context, refe return nil } -// verifyDefaultBranchUpdate verifies the default branch referance update. This is done by first checking if it is one of +// verifyDefaultBranchUpdate verifies the default branch reference update. This is done by first checking if it is one of // the references in the current transaction which is not scheduled to be deleted. If not, we check if its a valid reference // name in the repository. We don't do reference name validation because any reference going through the transaction manager // has name validation and we can rely on that. diff --git a/internal/gitaly/storage/storagemgr/transaction_manager_hook_test.go b/internal/gitaly/storage/storagemgr/transaction_manager_hook_test.go index c21df6497..63679547c 100644 --- a/internal/gitaly/storage/storagemgr/transaction_manager_hook_test.go +++ b/internal/gitaly/storage/storagemgr/transaction_manager_hook_test.go @@ -18,7 +18,7 @@ import ( // influence the execution of the test. type hookFunc func(hookContext) -// hookContext are the control toggels available in a hook. +// hookContext are the control toggles available in a hook. type hookContext struct { // closeManager calls the calls Close on the TransactionManager. closeManager func() @@ -28,7 +28,7 @@ type hookContext struct { } // hooks are functions that get invoked at specific points of the TransactionManager Run method. They allow -// for hooking into the Run method at specific poins which would otherwise to do assertions that would otherwise +// for hooking into the Run method at specific points which would otherwise to do assertions that would otherwise // not be possible. type hooks struct { // beforeReadLogEntry is invoked before a log entry is read from the database. |