Skip to content

Commit

Permalink
[Bugfix] GCC 4.6 build fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Sibiryov committed Apr 4, 2015
1 parent 1d947f7 commit c1f5682
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/service/locator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,13 +154,14 @@ locator_t::remote_t::on_announce(const std::string& node,
[&](std::vector<tcp::endpoint>&& endpoints, unsigned int version, graph_root_t&& graph)
{
int copies = 0;
api::gateway_t::partition_t partition(it->first, version);

if(endpoints.empty()) {
copies = parent->m_gateway->cleanup(uuid, {it->first, version});
active.erase ({it->first, version});
copies = parent->m_gateway->cleanup(uuid, partition);
active.erase (partition);
} else {
copies = parent->m_gateway->consume(uuid, {it->first, version}, endpoints);
active.insert({it->first, version});
copies = parent->m_gateway->consume(uuid, partition, endpoints);
active.insert(partition);
}

if(copies == 0) {
Expand Down

0 comments on commit c1f5682

Please sign in to comment.