aboutsummaryrefslogtreecommitdiff
path: root/ref/store/files/transaction_commit.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-25 14:31:16 +0000
committerGravatar Runxi Yu2026-03-25 14:31:16 +0000
commit48ff647cf4a8bb8f23fcd6b8616f56a8ef72b980 (patch)
treeae199c38042adaa544d5f7d31351661d5831381e /ref/store/files/transaction_commit.go
parent*: objectstore -> object/store (diff)
signatureNo signature
*: refstore -> ref/store
Diffstat (limited to 'ref/store/files/transaction_commit.go')
-rw-r--r--ref/store/files/transaction_commit.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/ref/store/files/transaction_commit.go b/ref/store/files/transaction_commit.go
new file mode 100644
index 00000000..76bcb195
--- /dev/null
+++ b/ref/store/files/transaction_commit.go
@@ -0,0 +1,12 @@
+package files
+
+func (tx *Transaction) Commit() error {
+ executor := &refUpdateExecutor{store: tx.store}
+
+ prepared, err := executor.prepareUpdates(tx.ops)
+ if err != nil {
+ return err
+ }
+
+ return executor.commitPreparedUpdates(prepared)
+}