"RADOS is connected error (%s)" % message, errno)
+class ConnectionShutdown(OSError):
+ """ `ConnectionShutdown` class, derived from `OSError` """
+ def __init__(self, message, errno=None):
+ super(ConnectionShutdown, self).__init__(
+ "RADOS connection was shutdown (%s)" % message, errno)
+
+
IF UNAME_SYSNAME == "FreeBSD":
cdef errno_to_exception = {
errno.EPERM : PermissionError,
errno.EISCONN : IsConnected,
errno.EINVAL : InvalidArgumentError,
errno.ENOTCONN : NotConnected,
+ errno.ESHUTDOWN : ConnectionShutdown,
}
ELSE:
cdef errno_to_exception = {
errno.EISCONN : IsConnected,
errno.EINVAL : InvalidArgumentError,
errno.ENOTCONN : NotConnected,
+ errno.ESHUTDOWN : ConnectionShutdown,
}
- ``num_object_copies`` (int) - number of object copies
- - ``num_objects_missing_on_primary`` (int) - number of objets
+ - ``num_objects_missing_on_primary`` (int) - number of objects
missing on primary
- ``num_objects_unfound`` (int) - number of unfound objects