Commit 2d465b72 authored by Tigran Mkrtchyan's avatar Tigran Mkrtchyan
Browse files

nfsv41: sessions: better logging

parent 58b20e02
......@@ -94,6 +94,7 @@ public class OperationCREATE_SESSION extends AbstractNFSv4Operation {
}
if(client.sessions().isEmpty() ) {
_log.log(Level.FINE, "set client {0} confirmed", client);
client.confirmed(true);
}
......
......@@ -60,13 +60,14 @@ public class OperationSEQUENCE extends AbstractNFSv4Operation {
NFSv41Session session = NFSv4StateHandler.getInstace().sessionById(_args.opsequence.sa_sessionid);
if(session == null ) {
_log.log(Level.FINEST, "no session for id [{0}]", _args.opsequence.sa_sessionid );
throw new ChimeraNFSException(nfsstat4.NFS4ERR_BADSESSION, "client not found");
}
NFS4Client client = session.getClient();
if( client.sessionsEmpty(session)) {
_log.log(Level.FINEST, "no session for id [{0}]", _args.opsequence.sa_sessionid );
_log.log(Level.FINEST, "no client for session for id [{0}]", _args.opsequence.sa_sessionid );
throw new ChimeraNFSException(nfsstat4.NFS4ERR_BADSESSION, "client not found");
}
......
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