]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: fix up completed_request handling during journal replay
authorSage Weil <sage@newdream.net>
Sat, 22 Nov 2008 16:57:19 +0000 (08:57 -0800)
committerSage Weil <sage@newdream.net>
Sat, 22 Nov 2008 16:57:19 +0000 (08:57 -0800)
commit33ee1135d38580bdbe8d1cbf19e514396be5b3dc
tree111eca69cbd0d1948a03593b6aaac133c0ee12a1
parentd7f30a511102732ba4dde38fe5f5038595d020b5
mds: fix up completed_request handling during journal replay

The completed_requests is handled separately from the session table
itself, in that we may add completed requests to the table even when
we may have loaded newer info.  But the handling was a bit wrong.
We make sure we only add completed requests if the session is already
open... and remove the unnecessary trim (if the sessionmap is newer, the
session is already closed, and thus we have no request info).
src/mds/journal.cc