diff options
Diffstat (limited to 'ref/store/files/transaction_commit.go')
| -rw-r--r-- | ref/store/files/transaction_commit.go | 12 |
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) +} |
