aboutsummaryrefslogtreecommitdiff
path: root/object/store/dual/quarantine_promote.go
diff options
context:
space:
mode:
Diffstat (limited to 'object/store/dual/quarantine_promote.go')
-rw-r--r--object/store/dual/quarantine_promote.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/object/store/dual/quarantine_promote.go b/object/store/dual/quarantine_promote.go
new file mode 100644
index 00000000..4d0a45b8
--- /dev/null
+++ b/object/store/dual/quarantine_promote.go
@@ -0,0 +1,13 @@
+package dual
+
+// Promote publishes both quarantine halves and invalidates the receiver.
+//
+// Promotion is coordinated and ordered, but not atomic.
+func (quarantine *quarantine) Promote() error {
+ err := quarantine.packQ.Promote()
+ if err != nil {
+ return err
+ }
+
+ return quarantine.objectQ.Promote()
+}