示例#1
0
文件: topology.go 项目: cyflhn/codis
func (top *Topology) GetActionWithSeqObject(seq int64, act *models.Action) error {
	var err error
	for {
		err = models.GetActionObject(top.zkConn, top.ProductName, seq, act, top.provider)
		if err == nil || top.IsFatalErr(err) {
			break
		} else {
			time.Sleep(ZK_RECONNECT_INTERVAL * time.Second)
		}
		if err != nil {
			log.ErrorErrorf(err, " GetActionWithSeqObject ")
		}
	}
	return err
}
示例#2
0
func (top *Topology) GetActionWithSeqObject(seq int64, act *models.Action) error {
	return models.GetActionObject(top.zkConn, top.ProductName, seq, act, top.provider)
}