Skip to content
Snippets Groups Projects
Commit cd8809c3 authored by Eric Cano's avatar Eric Cano
Browse files

Fixed wrong exception type thrown in BackendRados::AsyncLockfreeFetcher::fetchCallback()

parent 4d21e403
No related branches found
No related tags found
No related merge requests found
......@@ -791,6 +791,9 @@ void BackendRados::AsyncLockfreeFetcher::fetchCallback(librados::completion_t co
if (rados_aio_get_return_value(completion)<0) {
cta::exception::Errnum errnum(-rados_aio_get_return_value(completion),
std::string("In BackendRados::AsyncLockfreeFetcher::fetchCallback(): could not read object: ") + au.m_name);
if (errnum.errorNumber() == ENOENT) {
throw Backend::NoSuchObject(errnum.getMessageValue());
}
throw Backend::CouldNotFetch(errnum.getMessageValue());
}
// The data is in the buffer list.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment