]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osdc: use operator=(...) instead of claim() 35864/head
authorKefu Chai <kchai@redhat.com>
Wed, 1 Jul 2020 04:46:14 +0000 (12:46 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 1 Jul 2020 04:50:14 +0000 (12:50 +0800)
commit3c05ab6abf3a099fd590866317cbe93c7fc20c35
treefcd6e301a974d8a783d6c117a66639fe5665b775
parent7948e2de78a4a533cddc1dc505d1def5d42e8aa6
osdc: use operator=(...) instead of claim()

for silencing the warning like:
```
../src/osdc/ObjectCacher.cc: In member function ‘ObjectCacher::BufferHead* ObjectCacher::Object::split(ObjectCacher::BufferHead*, loff_t)’:
../src/osdc/ObjectCacher.cc:138:20: warning: ‘void ceph::buffer::v15_2_0::list::claim(ceph::buffer::v15_2_0::list&)’ is deprecated: in favor of operator=(list&&) [-Wdeprecated-declarations]
  138 |   bl.claim(left->bl);
      |                    ^
```

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/osdc/ObjectCacher.cc