]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph_test_rados_api_watch_notify: move global variables into test class 12751/head
authorKefu Chai <kchai@redhat.com>
Tue, 3 Jan 2017 06:20:05 +0000 (14:20 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 3 Jan 2017 06:24:28 +0000 (14:24 +0800)
commitc43274f2bb0d5c250e8c6668fc58a50aeb7919c1
treea802040c92ce78715d6fffdd61d9d03e0a08f8ed
parente4ca3c17ddc00b793013629d6289b2c34721b408
ceph_test_rados_api_watch_notify: move global variables into test class

so the class instances using mempool are destructed before the mempools
are destroyed. this avoids the "invalid read" issue reported by
valgrind.

Fixes: http://tracker.ceph.com/issues/18395
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/test/librados/watch_notify.cc