]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph_test_rados_api_watch_notify: weak assert cookie is valid (it's a ptr)
authorSage Weil <sage@redhat.com>
Wed, 10 Dec 2014 17:49:56 +0000 (09:49 -0800)
committerSage Weil <sage@redhat.com>
Wed, 10 Dec 2014 18:01:40 +0000 (10:01 -0800)
Signed-off-by: Sage Weil <sage@redhat.com>
src/test/librados/watch_notify.cc

index 57f6ff7e164f9b99e132dcf63a9e197c8287d4ec..ce4684656c3bb8afd4c2129be178db6b0fad370a 100644 (file)
@@ -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;
   }
 };