Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dCache
cta
Commits
3b99f468
Commit
3b99f468
authored
Oct 20, 2017
by
Eric Cano
Browse files
Fixed new BackendRados::lockBackoff() throwing exception.
parent
6f872762
Changes
1
Hide whitespace changes
Inline
Side-by-side
objectstore/BackendRados.cpp
View file @
3b99f468
...
...
@@ -406,7 +406,7 @@ void BackendRados::lockNotify(std::string name, uint64_t timeout_us, LockType lo
cta
::
exception
::
Errnum
::
throwOnReturnedErrno
(
-
m_radosCtx
.
remove
(
name
),
std
::
string
(
"In ObjectStoreRados::lock, failed to librados::IoCtx::remove: "
)
+
name
+
"//"
);
throw
Backend
::
NoSuchObject
(
std
::
string
(
"In BackendRados::lock(): "
throw
Backend
::
NoSuchObject
(
std
::
string
(
"In BackendRados::lock
Watch
(): "
"trying to lock a non-existing object: "
)
+
name
);
}
}
...
...
@@ -474,7 +474,8 @@ void BackendRados::lockBackoff(std::string name, uint64_t timeout_us, LockType l
cta
::
exception
::
Errnum
::
throwOnReturnedErrno
(
-
m_radosCtx
.
remove
(
name
),
std
::
string
(
"In ObjectStoreRados::lockBackoff, failed to librados::IoCtx::remove: "
)
+
name
+
"//"
);
throw
cta
::
exception
::
Errnum
(
ENOENT
,
std
::
string
(
"In BackendRados::lockBackoff(): trying to lock a non-existing object: "
)
+
name
);
throw
Backend
::
NoSuchObject
(
std
::
string
(
"In BackendRados::lockBackoff(): "
"trying to lock a non-existing object: "
)
+
name
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment