]> git.apps.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)
committerJason Dillaman <dillaman@redhat.com>
Fri, 10 Apr 2015 18:10:05 +0000 (14:10 -0400)
commit7ba4f1003ade33a7d3166af6b31334430573d8a3
tree87b958fad74b7beb8d5dcd7b6b4fd46e90916ec8
parente714800c48473321b2e8cf3355ce4ba481f6b5c6
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>
src/test/librados_test_stub/TestMemIoCtxImpl.cc
src/test/librados_test_stub/TestMemIoCtxImpl.h