]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: cleanup ambiguous slave update when master mds fails
authorYan, Zheng <zyan@redhat.com>
Mon, 6 Feb 2017 09:15:40 +0000 (17:15 +0800)
committerYan, Zheng <zyan@redhat.com>
Mon, 20 Feb 2017 08:12:36 +0000 (16:12 +0800)
commited69a3277dee3db71cb2be9910fa1113d449fb58
tree641db3d06f488c68ce3865d458ff554176cdab47
parent851003bc852788d0def92e8dfcdde2445191ab28
mds: cleanup ambiguous slave update when master mds fails

When auth mds of rename source dentry fails, slave updates in witness
mds become ambiguous. Witnesses need to ask the master if they should
rollback the updates. This type of rollback is special, corresponding
MDRequest struct need to be preserved after rollback. If the master
mds also fails, slave updates in witness mds are no longer special.
Corresponding MDRequest struct need to be cleanup after rollback.

see commit e62e48bb for more information.

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
src/mds/MDCache.cc
src/mds/MDCache.h