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
nfs4j
Commits
3474ace1
Commit
3474ace1
authored
Jan 02, 2012
by
Tigran Mkrtchyan
☕
Browse files
nfsv41: reactivate expired session even if there was a state associated with it
parent
283c82ed
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/org/dcache/chimera/nfs/v4/NFS4Client.java
View file @
3474ace1
...
...
@@ -224,6 +224,7 @@ public class NFS4Client {
long
curentTime
=
System
.
currentTimeMillis
();
if
((
curentTime
-
_cl_time
)
>
_leaseTime
)
{
_clientStates
.
clear
();
throw
new
ChimeraNFSException
(
nfsstat
.
NFSERR_EXPIRED
,
"lease time expired"
);
}
_cl_time
=
curentTime
;
...
...
src/org/dcache/chimera/nfs/v4/OperationEXCHANGE_ID.java
View file @
3474ace1
...
...
@@ -182,9 +182,7 @@ public class OperationEXCHANGE_ID extends AbstractNFSv4Operation {
if
(
client
.
isConfirmed
())
{
if
(
client
.
verifierEquals
(
verifier
)
&&
principal
.
equals
(
client
.
principal
()))
{
_log
.
debug
(
"Case 2: Non-Update on Existing Client ID"
);
if
(!
client
.
hasState
())
{
client
.
refreshLeaseTime
();
}
client
.
refreshLeaseTime
();
}
else
if
(
principal
.
equals
(
client
.
principal
()))
{
_log
.
debug
(
"case 5: Client Restart"
);
stateHandler
.
removeClient
(
client
);
...
...
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