From: Sage Weil Date: Wed, 10 Dec 2014 17:49:56 +0000 (-0800) Subject: ceph_test_rados_api_watch_notify: weak assert cookie is valid (it's a ptr) X-Git-Tag: v0.91~68 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=78eed527e78b338c8d1025bd4c4cc4ddbc43b9c8;p=ceph.git ceph_test_rados_api_watch_notify: weak assert cookie is valid (it's a ptr) Signed-off-by: Sage Weil --- diff --git a/src/test/librados/watch_notify.cc b/src/test/librados/watch_notify.cc index 57f6ff7e164f..ce4684656c3b 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; } };