inline long mkvparser::Segment::LoadCluster() { long long pos; long size; return LoadCluster(pos, size); }
void FeedMcProxyConsumer::update(const string& shard, const vector<string>& endpoints) { MCE_INFO("FeedMcProxyConsumer::update --> shard:" << shard); vector<string> tmp(endpoints); boost::unique_lock<boost::shared_mutex> wlock(mutex_); map<string, vector<string> >::iterator it = endpoints_.find(shard); if (it != endpoints_.end()) { it->second.swap(tmp); if (!it->second.empty()) { try { string endpoints; for (size_t i = 0; i<it->second.size(); ++i) { endpoints += it->second[i] + ";"; } LoadCluster(it->first,endpoints); } catch(std::exception& e) { MCE_WARN("FeedMcProxyConsumer::update -->err," << e.what()); } } } }