]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
librbd: don't do create+truncate for discards with copyup
authorIlya Dryomov <idryomov@gmail.com>
Wed, 6 Mar 2019 14:43:12 +0000 (15:43 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 7 Mar 2019 19:36:36 +0000 (20:36 +0100)
commit32b9385dc5f8016af3ba142c1f735fd898deec3c
treed7e37824db23a98f47a77f17388a93f8a7b653a9
parent95c6b36b6c1635050219b40b206b864d8de7c2ad
librbd: don't do create+truncate for discards with copyup

With copyup, create is unnecessary because the object will be created
as a result of the copyup.  create's place will be taken by assert_exists
from write_object().

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
src/librbd/io/ObjectRequest.h
src/test/librbd/io/test_mock_ObjectRequest.cc