]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: handle discovers that race with refragmenting
authorSage Weil <sage@newdream.net>
Wed, 27 Apr 2011 17:59:40 +0000 (10:59 -0700)
committerSage Weil <sage@newdream.net>
Wed, 27 Apr 2011 17:59:40 +0000 (10:59 -0700)
commitd1116818f0519ceedeb6553509fa9fc77f9cacf0
tree1290d16fcb23b0cee37f9d6bc563ec5950187ab0
parent33d1ea0d4f44fc061eb1279a704e96c6574ae9cd
mds: handle discovers that race with refragmenting

Consider:

 - send discover on frag X
 - X refragments
   - we take the waiter and rediscover on frag Y
 - we get the reply for the X discover

The auth mds will correctly delay sending the reply until the refragment
completes and it unfreezes, but the reply was getting the original frag_t,
not the new one.

Signed-off-by: Sage Weil <sage@newdream.net>
src/mds/MDCache.cc
src/messages/MDiscoverReply.h