blob: aeea497e7e6f492a700e443479df58dbe0d96e4b (
about) (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
package files
// Commit validates and applies the queued updates atomically.
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)
}
|