]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osdc/Objecter: invalidate crcs on preallocated rx buffers 26552/head
authorIlya Dryomov <idryomov@gmail.com>
Wed, 20 Feb 2019 21:30:29 +0000 (22:30 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Wed, 20 Feb 2019 23:38:04 +0000 (00:38 +0100)
commit3eeab975b604d9fc4290747f85a78d59a2452c2e
tree54216c9f0dbfcfafd7e6363fff5ff2aeda60e8c1
parente72d7bc67165cc450499ff9ff32dcd364ad9cec8
osdc/Objecter: invalidate crcs on preallocated rx buffers

Both simple and async messengers use c_str() when copying the data from
the socket into the receive buffer, going behind bufferlist's back.  If
the receive buffer is preallocated, we need to invalidate its crc cache
by hand to avoid possible data crc mismatches on the client side.

Fixes: https://tracker.ceph.com/issues/38416
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
src/osdc/Objecter.cc
src/test/librados/io_cxx.cc