shithub: furgit

ref: e7ce17381f525328073577d60583447fc9412c18
dir: /refstore/files/transaction_commit.go/

View raw version
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)
}