]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd/osd_types: remove copy ctor of osd_reqid_t 27003/head
authorKefu Chai <kchai@redhat.com>
Mon, 11 Mar 2019 11:08:03 +0000 (19:08 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 16 Mar 2019 06:24:35 +0000 (14:24 +0800)
commitd20869abb1219abd0a8fea0be26dc8894e849769
treea416cda523955494cb5c4f25a92d84e350b95471
parent6862c4c0fa31d81bef4d4817f8428f1ce6f5db90
osd/osd_types: remove copy ctor of osd_reqid_t

do not define the copy constructor of osd_reqid_t explicitly. compiler
will define a default one for us. the implicitly defined one will call
the copy constructor of each member variable. so it is as good as the
user-defined one.

another reason to remove this copy ctor is that, it prevents the
compiler from defining a default move constructor, without which, we
cannot return `future<object_info_t>`. as `object_info_t` contains an
instance of `osd_reqid_t`.

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