summaryrefslogtreecommitdiffstats
path: root/searchcore
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2020-09-26 19:19:24 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2020-09-26 19:19:24 +0000
commit80b2585f2c5bed035d5fb9215533109ad00a3fc5 (patch)
tree6a3158f65d3c336b5ca05804b22171e100ed6bd4 /searchcore
parent72b6f0a82a7f1f7caec8cc58815b3802d94fb92d (diff)
Use && qualified member functions.
Diffstat (limited to 'searchcore')
-rw-r--r--searchcore/src/apps/vespa-feed-bm/storage_api_rpc_bm_feed_handler.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/searchcore/src/apps/vespa-feed-bm/storage_api_rpc_bm_feed_handler.cpp b/searchcore/src/apps/vespa-feed-bm/storage_api_rpc_bm_feed_handler.cpp
index f8952363509..c8d73444652 100644
--- a/searchcore/src/apps/vespa-feed-bm/storage_api_rpc_bm_feed_handler.cpp
+++ b/searchcore/src/apps/vespa-feed-bm/storage_api_rpc_bm_feed_handler.cpp
@@ -41,8 +41,7 @@ make_set_cluster_state_request() {
auto* params = req->GetParams();
params->AddInt8(static_cast<uint8_t>(encoded_bundle._compression_type));
params->AddInt32(encoded_bundle._uncompressed_length);
- const auto buf_len = encoded_bundle._buffer->getDataLen();
- params->AddData(vespalib::DataBuffer::stealBuffer(std::move(*encoded_bundle._buffer)), buf_len);
+ params->AddData(std::move(*encoded_bundle._buffer));
req->SetMethodName("setdistributionstates");
return req;
}