Skip to content

Commit

Permalink
Merge "Fix build break in ubuntu1604 due to boost bind in uve aggrega…
Browse files Browse the repository at this point in the history
…tor. Closes-Bug:1671313"
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Mar 9, 2017
2 parents 63fed3c + 2de7791 commit bfbe0a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/analytics/kafka_processor.cc
Expand Up @@ -536,7 +536,9 @@ KafkaProcessor::StartKafka(void) {
ss << it->first;
aggs.insert(make_pair(ss.str(),
new UVEAggregator(it->first, it->second,
boost::bind(&RdKafka::KafkaConsumer::commitSync,
boost::bind(static_cast<
RdKafka::ErrorCode (RdKafka::KafkaConsumer::*)(RdKafka::Message*)>
(&RdKafka::KafkaConsumer::commitSync),
consumer, _1),
SandeshUVETypeMaps::kProxyPartitions)));
}
Expand Down
2 changes: 1 addition & 1 deletion src/analytics/uve_aggregator.h
Expand Up @@ -25,7 +25,7 @@ class UVEAggregator {
public:
static const uint64_t kCommitPeriod_us = 3600000000;

typedef boost::function<int32_t (RdKafka::Message *message)> commitCb;
typedef boost::function<RdKafka::ErrorCode (RdKafka::Message *message)> commitCb;
UVEAggregator(const std::string& proxy, const std::string& conf,
commitCb commit_cb, uint64_t partitions):
topic_(proxy),
Expand Down

0 comments on commit bfbe0a9

Please sign in to comment.