aboutsummaryrefslogtreecommitdiff
path: root/object/store/dual/quarantine_promote.go
blob: 4d0a45b855caf3aa87ca5efebafb279afd6014f8 (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
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()
}