Commit 3474ace1 authored by Tigran Mkrtchyan's avatar Tigran Mkrtchyan
Browse files

nfsv41: reactivate expired session even if there was a state associated with it

parent 283c82ed
......@@ -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;
......
......@@ -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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment