]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: increase cap sequence when sharing max size
authorYan, Zheng <zheng.z.yan@intel.com>
Mon, 18 Nov 2013 09:59:06 +0000 (17:59 +0800)
committerYan, Zheng <zheng.z.yan@intel.com>
Mon, 16 Dec 2013 04:15:24 +0000 (12:15 +0800)
commit77515b7a3c7280a2bd448889ea63591ad69096f0
tree3b34b6ff740246b114d83ec5092903a4d4322959
parent65259796ae95cb5676cdef17d69f34ac7be6b5ea
mds: increase cap sequence when sharing max size

For case:
 - client voluntarily releases some caps through cap update message
 - mds shares the new max by sending cap grant message
 - mds recevies the cap update message

If mds doesn't increase the cap sequence when sharing the max size.
It can't determine if the cap update message was sent before or after
client reveived the cap grant message that updates max size.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
src/mds/Capability.h
src/mds/Locker.cc
src/mds/MDCache.cc