]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/test/fs/test_ino_release_cb.cc
import quincy beta 17.1.0
[ceph.git] / ceph / src / test / fs / test_ino_release_cb.cc
index 688f9ad7f67e84cf650676ab2e5cf34a74f893ed..b442fb99192905ad196bf113946e1a4e9a947b60 100644 (file)
@@ -7,6 +7,8 @@
 #define MAX_CEPH_FILES 1000
 #define DIRNAME                "ino_release_cb"
 
+using namespace std;
+
 static std::atomic<bool> cb_done = false;
 
 static void cb(void *hdl, vinodeno_t vino)
@@ -57,7 +59,8 @@ int main(int argc, char *argv[])
 
        struct ceph_client_callback_args args = { 0 };
        args.ino_release_cb = cb;
-       ceph_ll_register_callbacks(cmount, &args);
+       ret = ceph_ll_register_callbacks2(cmount, &args);
+       assert(ret == 0);
 
        ret = ceph_mount(cmount, NULL);
        assert(ret >= 0);