Exemple #1
0
func apiRemoveFence() (int, string) {
	err := models.ForceRemoveDeadFence(safeZkConn, globalEnv.ProductName())
	if err != nil {
		log.Warning(errors.ErrorStack(err))
		return 500, err.Error()
	}
	return jsonRetSucc()

}
Exemple #2
0
func apiRemoveFence() (int, string) {
	err := models.ForceRemoveDeadFence(safeZkConn, globalEnv.ProductName())
	if err != nil {
		log.ErrorErrorf(err, "force remove fence failed")
		return 500, err.Error()
	}
	return jsonRetSucc()

}