]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: fix replay/resent vs completed request check
authorSage Weil <sage@newdream.net>
Sun, 12 Dec 2010 22:39:48 +0000 (14:39 -0800)
committerSage Weil <sage@newdream.net>
Sun, 12 Dec 2010 22:40:05 +0000 (14:40 -0800)
commit9add26be7698b55e31d9dff73537f1a726f9ee86
tree16a9b790f69e1f3faf30537730880db92510168d
parent346a2aac421dd902579d848891726d807e01ec52
mds: fix replay/resent vs completed request check

If it is a _replayed_ request, we should always send a simple ack if it is
completed, because the client doesn't not care about any additional caps.

If it is a _resent_ request, then we want to return useful caps on open or
create requests, even if any modification side-effects have already been
committed.  The additional checks for completed already exist in the
create and open handlers.

Signed-off-by: Sage Weil <sage@newdream.net>
src/mds/Server.cc