Commit 446c0ab3 authored by cdjgit's avatar cdjgit

fix ut failure

parent bd7e7e31
...@@ -74,7 +74,7 @@ int SharedLoadBalancer::Init(const char* lb_protocol) { ...@@ -74,7 +74,7 @@ int SharedLoadBalancer::Init(const char* lb_protocol) {
LOG(FATAL) << "Fail to find LoadBalancer by `" << lb_name << "'"; LOG(FATAL) << "Fail to find LoadBalancer by `" << lb_name << "'";
return -1; return -1;
} }
LoadBalancer* _lb = lb->New(lb_params); _lb = lb->New(lb_params);
if (_lb == NULL) { if (_lb == NULL) {
LOG(FATAL) << "Fail to new LoadBalancer"; LOG(FATAL) << "Fail to new LoadBalancer";
return -1; return -1;
......
...@@ -63,9 +63,9 @@ public: ...@@ -63,9 +63,9 @@ public:
void Destroy(); void Destroy();
int SelectServer(const SelectIn &in, SelectOut *out); int SelectServer(const SelectIn &in, SelectOut *out);
void Describe(std::ostream &os, const DescribeOptions& options); void Describe(std::ostream &os, const DescribeOptions& options);
bool SetParameters(const butil::StringPiece& params);
private: private:
bool SetParameters(const butil::StringPiece& params);
void GetLoads(std::map<butil::EndPoint, double> *load_map); void GetLoads(std::map<butil::EndPoint, double> *load_map);
static size_t AddBatch(std::vector<Node> &bg, const std::vector<Node> &fg, static size_t AddBatch(std::vector<Node> &bg, const std::vector<Node> &fg,
const std::vector<Node> &servers, bool *executed); const std::vector<Node> &servers, bool *executed);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment