Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarthik Nayak <knayak@gitlab.com>2023-02-15 15:48:10 +0300
committerKarthik Nayak <knayak@gitlab.com>2023-02-17 13:19:04 +0300
commit3f3d029d1c96f5425a6b3f3306316b3f3e318c3e (patch)
treef5e9f8155eeb45b1b06955bdc224a22fd1abec5e /internal/gitaly/transaction_manager_hook_test.go
parentaef8ac931aa504907aee67911b08ca1bc06ab960 (diff)
gitaly: Prune log entry after being applied
In `TransactionManager`, we don't Prune a log entry after it is applied. This means the key lies in the database forever while providing no additional value. Let's start pruning entries in the log after being applied, we do this in `TransactionManager.applyLogEntry` wherein after the transaction is applied we go ahead and delete the entry. Since the entries are deleted, some of the tests need modification to check the state of the database before deletion, modify all such tests.
Diffstat (limited to 'internal/gitaly/transaction_manager_hook_test.go')
-rw-r--r--internal/gitaly/transaction_manager_hook_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/gitaly/transaction_manager_hook_test.go b/internal/gitaly/transaction_manager_hook_test.go
index 42a8d56e0..434811669 100644
--- a/internal/gitaly/transaction_manager_hook_test.go
+++ b/internal/gitaly/transaction_manager_hook_test.go
@@ -36,7 +36,7 @@ type hooks struct {
beforeResolveRevision hookFunc
// beforeDeferredStop is invoked before the deferred Stop is invoked in Run.
beforeDeferredStop hookFunc
- // beforeDeleteLogEntry is invoked before a log entry is delted from the database.
+ // beforeDeleteLogEntry is invoked before a log entry is deleted from the database.
beforeDeleteLogEntry hookFunc
}