From 78eed527e78b338c8d1025bd4c4cc4ddbc43b9c8 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Wed, 10 Dec 2014 09:49:56 -0800 Subject: [PATCH] ceph_test_rados_api_watch_notify: weak assert cookie is valid (it's a ptr) Signed-off-by: Sage Weil --- src/test/librados/watch_notify.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/test/librados/watch_notify.cc b/src/test/librados/watch_notify.cc index 57f6ff7e164..ce4684656c3 100644 --- a/src/test/librados/watch_notify.cc +++ b/src/test/librados/watch_notify.cc @@ -67,6 +67,7 @@ static void watch_notify2_test_cb(void *arg, static void watch_notify2_test_errcb(void *arg, uint64_t cookie, int err) { std::cout << __func__ << " cookie " << cookie << std::endl; + assert(cookie > 1000); notify_err = err; } @@ -89,6 +90,7 @@ public: void handle_error(uint64_t cookie, int err) { std::cout << __func__ << " cookie " << cookie << std::endl; + assert(cookie > 1000); notify_err = err; } }; -- 2.47.3