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