rados-connect-to-pool   xtlang


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/libs/external/ceph.xtm

Implementation

(bind-func rados-connect-to-pool
  (lambda (cluster poolname)
    (let ((io:rados_ioctx_t* (salloc)))
      (if (< (rados_ioctx_create cluster poolname io) 0)
          (begin (printf "[rados] error connecting to pool")
                 (cast null rados_ioctx_t))
          (pref io 0)))))


Back to Index