mirror of
https://github.com/ceph/ceph
synced 2025-01-26 04:55:30 +00:00
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:
parent
b0ab76a80f
commit
8c5fea68cb
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user