PyObject *PyBytes_FromStringAndSize(char *v, Py_ssize_t len) except NULL
char* PyBytes_AsString(PyObject *string) except NULL
int _PyBytes_Resize(PyObject **string, Py_ssize_t newsize) except -1
- void PyEval_InitThreads()
cdef void completion_callback(int rc, const void* out, size_t outlen, const void* outs, size_t outslen, void* ud) nogil:
# This GIL awkwardness is due to incompatible types with function pointers defined with mds_command2:
:auth_id str opt: the id used to authenticate the client entity
:rados_inst Rados opt: a rados.Rados instance
"""
- PyEval_InitThreads()
self.state = "uninitialized"
if rados_inst is not None:
if auth_id is not None or conffile is not None or conf is not None:
PyObject *PyBytes_FromStringAndSize(char *v, Py_ssize_t len) except NULL
char* PyBytes_AsString(PyObject *string) except NULL
int _PyBytes_Resize(PyObject **string, Py_ssize_t newsize) except -1
- void PyEval_InitThreads()
LIBRADOS_OP_FLAG_EXCL = _LIBRADOS_OP_FLAG_EXCL
LIBRADOS_OP_FLAG_FAILOK = _LIBRADOS_OP_FLAG_FAILOK
# NOTE(sileht): attributes declared in .pyd
def __init__(self, *args, **kwargs):
- PyEval_InitThreads()
self.__setup(*args, **kwargs)
NO_CONF_FILE = -1
PyObject *PyBytes_FromStringAndSize(char *v, Py_ssize_t len) except NULL
char* PyBytes_AsString(PyObject *string) except NULL
int _PyBytes_Resize(PyObject **string, Py_ssize_t newsize) except -1
- void PyEval_InitThreads()
class Error(Exception):
"RGWFS object in state %s." % (self.state))
def __cinit__(self, uid, key, secret):
- PyEval_InitThreads()
self.state = "umounted"
ret = librgw_create(&self.cluster, 0, NULL)
if ret != 0: