mds: add debug output to make completions easier to track

Signed-off-by: Sage Weil <sage@newdream.net>
This commit is contained in:
Sage Weil 2010-11-30 12:56:15 -08:00
parent ba1f3cb980
commit 91a7559061

View File

@ -1623,7 +1623,14 @@ do { \
dout(7) << "mds has " << finished_queue.size() << " queued contexts" << dendl;
dout(10) << finished_queue << dendl;
finishing = true;
finish_contexts(finished_queue);
list<Context*> ls;
ls.swap(finished_queue);
while (!ls.empty()) {
dout(10) << " finish " << ls.front() << dendl;
ls.front()->finish(0);
delete ls.front();
ls.pop_front();
}
finishing = false;
}