From 5ec1742b9ae0400a57335522ed82fe5bd0ba5719 Mon Sep 17 00:00:00 2001 From: Avi Kivity Date: Sat, 22 Apr 2017 20:48:01 +0300 Subject: [PATCH] storage_proxy: drop unused member access from return value Noticed by clang. --- service/storage_proxy.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/storage_proxy.cc b/service/storage_proxy.cc index 1bbfc744c8..3ab8891bea 100644 --- a/service/storage_proxy.cc +++ b/service/storage_proxy.cc @@ -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; } }