diff options
author | Sage Weil <sage@inktank.com> | 2012-07-09 20:54:19 -0700 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2012-07-09 21:27:11 -0700 |
commit | 58f46bb94fb22301cbb47ca3d861f256882ccfe0 (patch) | |
tree | 6ab6a2b12badaad62db9887ffdb3ebf7e11207fc | |
parent | 67a5e75ed6a9b3689a984d6f7eb6a18e1242125e (diff) | |
download | ceph-58f46bb94fb22301cbb47ca3d861f256882ccfe0.tar.gz |
test_stress_watch: just one librados instance
This was creating a new cluster connection/session per iteration, and
along with it a few service threads and sockets and so forth.
Unfortunately, librados leaks like a sieve, starting with CephContext
and ceph::crypto::init(). See #845 and #2067.
Signed-off-by: Sage Weil <sage@inktank.com>
-rw-r--r-- | src/test/test_stress_watch.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test_stress_watch.cc b/src/test/test_stress_watch.cc index d5cfc9e21ff..ec75bd91170 100644 --- a/src/test/test_stress_watch.cc +++ b/src/test/test_stress_watch.cc @@ -38,10 +38,10 @@ struct WatcherUnwatcher : public Thread { WatcherUnwatcher(string& _pool) : pool(_pool) {} void *entry() { + Rados cluster; + connect_cluster_pp(cluster); while (!stop_flag.read()) { - Rados cluster; IoCtx ioctx; - connect_cluster_pp(cluster); cluster.ioctx_create(pool.c_str(), ioctx); uint64_t handle; |