shithub: furgit

ref: ab174c473618dd3743881cf44e02c2db4d1ecd5f
dir: /object/store/dual/quarantine_promote.go/

View raw version
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()
}