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