aboutsummaryrefslogtreecommitdiff
path: root/refstore/files/transaction_commit.go
blob: 4839936ab90b0d521320621f635d6ea37fadcd4e (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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)
}