shithub: furgit

ref: df1f2fb3daa1acd25c88510f259d5535fb482126
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()
}