]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
tests: fix erasure-code premature deallocation of cct
authorLoic Dachary <ldachary@redhat.com>
Thu, 8 Dec 2016 11:40:42 +0000 (12:40 +0100)
committerLoic Dachary <ldachary@redhat.com>
Thu, 8 Dec 2016 11:44:21 +0000 (12:44 +0100)
commitefa1e54362423d4cfd1541fb8c68237b7b9ebbe3
tree0ef4cc9a270dae3137b8b70151a01104a32a16fc
parent96cf8a1b2878d56c5e5d7cecbfd9e776871766b7
tests: fix erasure-code premature deallocation of cct

The setup function returns before the run function, the cct variable
must be a data member, not a local variable that gets de-allocated
before run() starts.

Signed-off-by: Loic Dachary <loic@dachary.org>
src/test/erasure-code/ceph_erasure_code.cc
src/test/erasure-code/ceph_erasure_code_benchmark.cc
src/test/erasure-code/ceph_erasure_code_benchmark.h