Merge pull request #20270 from ivancich/wip-fix-bad-dmclock-sim-change

osd,dmclock: fix dmclock test simulator change

Reviewed-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
Kefu Chai 2018-02-05 11:05:35 +08:00 committed by GitHub
commit 164ed9399e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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