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
721d6d59
Commit
721d6d59
authored
Aug 04, 2017
by
Eric Cano
Browse files
Increased timeout for rados locks to 4 minutes.
Some cases of operations taking over a minute were seen practice.
parent
d64e47a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
objectstore/BackendRados.cpp
View file @
721d6d59
...
...
@@ -161,7 +161,7 @@ BackendRados::ScopedLock* BackendRados::lockExclusive(std::string name) {
std
::
string
client
=
createUniqueClientId
();
struct
timeval
tv
;
tv
.
tv_usec
=
0
;
tv
.
tv_sec
=
6
0
;
tv
.
tv_sec
=
24
0
;
int
rc
;
std
::
unique_ptr
<
ScopedLock
>
ret
(
new
ScopedLock
(
m_radosCtx
));
// Crude backoff: we will measure the RTT of the call and backoff a faction of this amount multiplied
...
...
@@ -214,7 +214,7 @@ BackendRados::ScopedLock* BackendRados::lockShared(std::string name) {
std
::
string
client
=
createUniqueClientId
();
struct
timeval
tv
;
tv
.
tv_usec
=
0
;
tv
.
tv_sec
=
6
0
;
tv
.
tv_sec
=
24
0
;
int
rc
;
std
::
unique_ptr
<
ScopedLock
>
ret
(
new
ScopedLock
(
m_radosCtx
));
// Crude backoff: we will measure the RTT of the call and backoff a faction of this amount multiplied
...
...
@@ -278,7 +278,7 @@ BackendRados::AsyncUpdater::AsyncUpdater(BackendRados& be, const std::string& na
m_lockClient
=
BackendRados
::
createUniqueClientId
();
struct
timeval
tv
;
tv
.
tv_usec
=
0
;
tv
.
tv_sec
=
6
0
;
tv
.
tv_sec
=
24
0
;
int
rc
;
// TODO: could be improved (but need aio_lock in rados, not available at the time
// of writing).
...
...
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