Skip to content

Commit

Permalink
Fix build break in ubuntu1604 due to boost bind in uve aggregator.
Browse files Browse the repository at this point in the history
Closes-Bug:1671313

Change-Id: I9134c30e9e68427473178446ef494e84499d0c05
  • Loading branch information
anishmehta committed Mar 9, 2017
1 parent 26d8424 commit 2de7791
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 2de7791

Please sign in to comment.