Skip to content

Commit

Permalink
mds: drop gather if it's empty
Browse files Browse the repository at this point in the history
This can happen from scatter_nudge, which may add a sub and then
complete it, emptying out the C_Gather.
  • Loading branch information
liewegas committed Mar 18, 2010
1 parent 83203b5 commit 965d737
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/mds/journal.cc
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,11 @@ C_Gather *LogSegment::try_to_expire(MDS *mds)
}
}

if (gather && gather->empty()) {
delete gather;
gather = NULL;
}

if (gather) {
dout(6) << "LogSegment(" << offset << ").try_to_expire waiting" << dendl;
mds->mdlog->flush();
Expand Down

0 comments on commit 965d737

Please sign in to comment.