diff options
author | Ilya Dryomov <idryomov@gmail.com> | 2020-06-29 16:36:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-29 16:36:39 +0200 |
commit | cedf2bbd13daba6059c98046969f646b944042ae (patch) | |
tree | baf9ae6fff92bdfa6b116eb89551e847418063cd /src/messages/MLock.h | |
parent | Merge pull request #35833 from smithfarm/wip-rn_14_2_10 (diff) | |
parent | common/bl, *: deprecate list::claim() in favor of operator=(list&&). (diff) | |
download | ceph-cedf2bbd13daba6059c98046969f646b944042ae.tar.xz ceph-cedf2bbd13daba6059c98046969f646b944042ae.zip |
Merge pull request #35729 from rzarzynski/wip-bl-deprecate-claim
common/bl, *: deprecate bufferlist::claim() and switch to rvalue-taking operator=()
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'src/messages/MLock.h')
-rw-r--r-- | src/messages/MLock.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/messages/MLock.h b/src/messages/MLock.h index dc3142d13d2..1a252eac264 100644 --- a/src/messages/MLock.h +++ b/src/messages/MLock.h @@ -61,7 +61,7 @@ protected: MMDSOp{MSG_MDS_LOCK, HEAD_VERSION, COMPAT_VERSION}, action(ac), asker(as), lock_type(lock->get_type()) { lock->get_parent()->set_object_info(object_info); - lockdata.claim(bl); + lockdata = std::move(bl); } ~MLock() override {} |