// MarkFailed set state of backup and given rs as error with msg
MarkFailed set state of backup and given rs as error with msg
// MarkFailed set state of backup and given rs as error with msg
func (b *Backup) MarkFailed(bcpName, rsName, msg string) error {
	err := b.cn.ChangeBackupState(bcpName, pbm.StatusError, msg)
	if err != nil {
		return errors.Wrap(err, "set backup state")
	}
	err = b.cn.ChangeRSState(bcpName, rsName, pbm.StatusError, msg)
	return errors.Wrap(err, "set replset state")
}
func ( b * Backup ) MarkFailed ( bcpName , rsName , msg string ) error { err := b . cn . ChangeBackupState ( bcpName , pbm . StatusError , msg ) if err != nil { return errors . Wrap ( err , " " ) } err = b . cn . ChangeRSState ( bcpName , rsName , pbm . StatusError , msg ) return errors . Wrap ( err , " " ) }
MarkFailed set state of backup and given rs as error with msg
MarkFailed set state of backup and given rs as error with msg