enforce move semantics of Request type

Signed-off-by: Samuel Just <sjust@redhat.com>
Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
Kefu Chai 2017-07-12 10:28:37 +08:00 committed by myoungwon oh
parent b0ab76a80f
commit 8c5fea68cb

View File

@ -104,11 +104,10 @@ namespace crimson {
void add_request(R&& request,
const C& client_id,
const ReqParams& req_params) {
add_request(RequestRef(new R(std::move(request))),
client_id, req_params);
add_request(std::move(request), client_id, req_params);
}
void add_request(RequestRef&& request,
void add_request(R&& request,
const C& client_id,
const ReqParams& req_params) {
DataGuard g(queue_mtx);