]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
tests: librados_test_stub reads should deep-copy
authorJason Dillaman <dillaman@redhat.com>
Fri, 6 Mar 2015 20:40:48 +0000 (15:40 -0500)
committerLoic Dachary <ldachary@redhat.com>
Wed, 6 May 2015 09:29:51 +0000 (11:29 +0200)
commit7ee7dcfd609731d3c7f51b74c1d99fb3fa51c413
treea7eed0777e53bfb6233c6013c76d74203aebd59b
parentbc51476181429d7d95d2bba5f774d8b60c47fb1f
tests: librados_test_stub reads should deep-copy

If a client of librados_test_stub modified a bufferlist
retrieved via a read call, the client will actually be
changing the contents of the file.  Therefore, read calls
should deep-copy the contents of the buffer::ptrs.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 76fe8d73ff79da2d734f70680208a2c188b58671)
src/test/librados_test_stub/TestMemIoCtxImpl.cc
src/test/librados_test_stub/TestMemIoCtxImpl.h