]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crimson/osd: do not pass ops to submit_transaction() separately
authorKefu Chai <kchai@redhat.com>
Sun, 7 Feb 2021 15:12:14 +0000 (23:12 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 9 Feb 2021 03:38:22 +0000 (11:38 +0800)
commit3c17ea90104573ac5cafc7409e0743c1c101229b
treea9da50a1a24d93571293e76ea3eaaa0136203e5c
parente730737e8b84924829343e92460acc0c647dd0d3
crimson/osd: do not pass ops to submit_transaction() separately

the order of evaluation of function arguments is unspecified with some
exceptions. but in this case, the reason why ops is still valid is that
the parameter type of `osd_op_p` is `const osd_op_params_t&`. so a copy
is passed to it.

to enable us to actually move `osd_op_p`, in this change, the
osd_op_p.req->ops is used instead.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/osd/pg.cc
src/crimson/osd/pg.h