aboutsummaryrefslogtreecommitdiff
path: root/refstore/files/batch_queue_ops.go
diff options
context:
space:
mode:
Diffstat (limited to 'refstore/files/batch_queue_ops.go')
-rw-r--r--refstore/files/batch_queue_ops.go16
1 files changed, 8 insertions, 8 deletions
diff --git a/refstore/files/batch_queue_ops.go b/refstore/files/batch_queue_ops.go
index b381a7ee..b74157c1 100644
--- a/refstore/files/batch_queue_ops.go
+++ b/refstore/files/batch_queue_ops.go
@@ -3,33 +3,33 @@ package files
import "codeberg.org/lindenii/furgit/objectid"
func (batch *Batch) Create(name string, newID objectid.ObjectID) {
- batch.queue(txOp{name: name, kind: txCreate, newID: newID})
+ batch.queue(queuedUpdate{name: name, kind: updateCreate, newID: newID})
}
func (batch *Batch) Update(name string, newID, oldID objectid.ObjectID) {
- batch.queue(txOp{name: name, kind: txUpdate, newID: newID, oldID: oldID})
+ batch.queue(queuedUpdate{name: name, kind: updateReplace, newID: newID, oldID: oldID})
}
func (batch *Batch) Delete(name string, oldID objectid.ObjectID) {
- batch.queue(txOp{name: name, kind: txDelete, oldID: oldID})
+ batch.queue(queuedUpdate{name: name, kind: updateDelete, oldID: oldID})
}
func (batch *Batch) Verify(name string, oldID objectid.ObjectID) {
- batch.queue(txOp{name: name, kind: txVerify, oldID: oldID})
+ batch.queue(queuedUpdate{name: name, kind: updateVerify, oldID: oldID})
}
func (batch *Batch) CreateSymbolic(name, newTarget string) {
- batch.queue(txOp{name: name, kind: txCreateSymbolic, newTarget: newTarget})
+ batch.queue(queuedUpdate{name: name, kind: updateCreateSymbolic, newTarget: newTarget})
}
func (batch *Batch) UpdateSymbolic(name, newTarget, oldTarget string) {
- batch.queue(txOp{name: name, kind: txUpdateSymbolic, newTarget: newTarget, oldTarget: oldTarget})
+ batch.queue(queuedUpdate{name: name, kind: updateReplaceSymbolic, newTarget: newTarget, oldTarget: oldTarget})
}
func (batch *Batch) DeleteSymbolic(name, oldTarget string) {
- batch.queue(txOp{name: name, kind: txDeleteSymbolic, oldTarget: oldTarget})
+ batch.queue(queuedUpdate{name: name, kind: updateDeleteSymbolic, oldTarget: oldTarget})
}
func (batch *Batch) VerifySymbolic(name, oldTarget string) {
- batch.queue(txOp{name: name, kind: txVerifySymbolic, oldTarget: oldTarget})
+ batch.queue(queuedUpdate{name: name, kind: updateVerifySymbolic, oldTarget: oldTarget})
}