]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: guarantee message ordering when importing non-auth caps
authorYan, Zheng <zheng.z.yan@intel.com>
Thu, 10 Apr 2014 08:03:51 +0000 (16:03 +0800)
committerYan, Zheng <zheng.z.yan@intel.com>
Thu, 10 Apr 2014 11:46:56 +0000 (19:46 +0800)
commit02048dcc30e2c0d8a99ae98be98a8c13d45151c2
tree6a0daa85c7d52b28541d645de091ec54761569c6
parentcf69bdbd7498a151b251b20c1552003c82f26db7
mds: guarantee message ordering when importing non-auth caps

Current code allow importing non-auth caps when inode is being exported.
This can breaks message ordering because the corresponding cap import
messages are sent after the flush session messages. So they can arrive
at clients after clients have already received cap import messages from
new auth MDS of the inode.

The quick fix is ignore MExportCaps when inode is frozen.

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