Skip to content

Commit

Permalink
mds: only check for canceled _client_ requests, not slaves
Browse files Browse the repository at this point in the history
Slave requests don't get added to the session request list.
  • Loading branch information
liewegas committed Mar 9, 2010
1 parent 233d2d8 commit 72e04c8
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/mds/MDCache.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6373,12 +6373,11 @@ void MDCache::request_forward(MDRequest *mdr, int who, int port)

void MDCache::dispatch_request(MDRequest *mdr)
{
if (!mdr->session_request_item.is_on_xlist()) {
dout(10) << "request " << *mdr << " is canceled" << dendl;
return;
}

if (mdr->client_request) {
if (!mdr->session_request_item.is_on_xlist()) {
dout(10) << "request " << *mdr << " is canceled" << dendl;
return;
}
mds->server->dispatch_client_request(mdr);
} else if (mdr->slave_request) {
mds->server->dispatch_slave_request(mdr);
Expand Down

0 comments on commit 72e04c8

Please sign in to comment.