ref: fb9eb058f1c9b7cb26f33bbe679a85f530566641
dir: /ref/store/files/transaction_commit.go/
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)
}