nfs4: Fix connection recovery code

This commit is contained in:
Pawel Dziepak 2013-01-08 20:07:56 +01:00
parent fea92e7bb3
commit bd19f23cec
2 changed files with 4 additions and 4 deletions

View File

@ -243,7 +243,7 @@ NFS4Server::_Renewal()
}
Request request(fServer, NULL);
request.Builder().Renew(fClientId);
request.Builder().Renew(clientId);
request.Send();
switch (request.Reply().NFS4Error()) {

View File

@ -141,7 +141,7 @@ Server::SendCallAsync(Call* call, Reply** reply, Request** request)
ASSERT(reply != NULL);
ASSERT(request != NULL);
if (fThreadError != B_OK)
if (fThreadError != B_OK && Repair() != B_OK)
return fThreadError;
Request* req = new(std::nothrow) Request;
@ -170,7 +170,7 @@ Server::ResendCallAsync(Call* call, Request* request)
ASSERT(call != NULL);
ASSERT(request != NULL);
if (fThreadError != B_OK) {
if (fThreadError != B_OK && Repair() != B_OK) {
fRequests.FindRequest(request->fXID);
delete request;
return fThreadError;
@ -212,7 +212,7 @@ Server::Repair()
uint32 thisRepair = fRepairCount;
MutexLocker _(fRepairLock);
if (fRepairCount == thisRepair)
if (fRepairCount != thisRepair)
return B_OK;
fThreadCancel = true;