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:
authorSami Hiltunen <shiltunen@gitlab.com>2023-04-06 10:32:40 +0300
committerSami Hiltunen <shiltunen@gitlab.com>2023-04-17 17:25:32 +0300
commitb7492443beb518d87a30ad0bd49a7df92e17c152 (patch)
tree7e8fef0e2218a24ae2334a43169a908323830cfc /internal/gitaly/transaction_manager.go
parent2dc7597fff9f51ba570dc5fc52dd86c477a328db (diff)
Return an error from Rollback
Rollback will soon have logic to clean up after the Transaction. Change the signature to return an error as well so we can return any clean up errors to the caller.
Diffstat (limited to 'internal/gitaly/transaction_manager.go')
-rw-r--r--internal/gitaly/transaction_manager.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/internal/gitaly/transaction_manager.go b/internal/gitaly/transaction_manager.go
index fbb7ea616..a05d1a7a2 100644
--- a/internal/gitaly/transaction_manager.go
+++ b/internal/gitaly/transaction_manager.go
@@ -179,7 +179,9 @@ func (txn *Transaction) Commit(ctx context.Context) error {
}
// Rollback releases resources associated with the transaction without performing any changes.
-func (txn *Transaction) Rollback() {}
+func (txn *Transaction) Rollback() error {
+ return nil
+}
// Snapshot returns the details of the Transaction's read snapshot.
func (txn *Transaction) Snapshot() Snapshot {