ref: 0b2dcaabe23d45f6feb2273031854b14b512e3ff
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)
}