shithub: furgit

ref: 6e917f2b9b6b64721d046d66311aa64589e19d9f
dir: /ref/store/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)
}