ref: 1556cfb51d980ae8c5bf664ad69f3abd46f02386
dir: /refstore/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)
}