aboutsummaryrefslogtreecommitdiff
path: root/ref/store/files/transaction_queue.go
blob: aa2004c33d0f05d111feb8a3d4fc534e1bfb8294 (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
package files

func (tx *Transaction) queue(op queuedUpdate) error {
	err := (&refUpdateExecutor{store: tx.store}).validateQueuedUpdate(op)
	if err != nil {
		return err
	}

	tx.ops = append(tx.ops, op)

	return nil
}