summaryrefslogtreecommitdiffstats
path: root/src/messages/MLock.h
diff options
context:
space:
mode:
authorIlya Dryomov <idryomov@gmail.com>2020-06-29 16:36:39 +0200
committerGitHub <noreply@github.com>2020-06-29 16:36:39 +0200
commitcedf2bbd13daba6059c98046969f646b944042ae (patch)
treebaf9ae6fff92bdfa6b116eb89551e847418063cd /src/messages/MLock.h
parentMerge pull request #35833 from smithfarm/wip-rn_14_2_10 (diff)
parentcommon/bl, *: deprecate list::claim() in favor of operator=(list&&). (diff)
downloadceph-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.h2
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 {}