storage_proxy: drop unused member access from return value

Noticed by clang.
This commit is contained in:
Avi Kivity
2017-04-22 20:48:01 +03:00
parent e4bae0df51
commit 5ec1742b9a

View File

@@ -342,7 +342,7 @@ public:
auto pending_for_dc = boost::range::count_if(pending_endpoints, [&snitch_ptr, &dc] (gms::inet_address& ep){
return snitch_ptr->get_datacenter(ep) == dc;
});
_dc_responses.emplace(dc, db::local_quorum_for(ks, dc) + pending_for_dc).first;
_dc_responses.emplace(dc, db::local_quorum_for(ks, dc) + pending_for_dc);
_pending_endpoints += pending_for_dc;
}
}