]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: notify all mds about prepared snaptable update
authorYan, Zheng <zyan@redhat.com>
Thu, 20 Jul 2017 07:24:53 +0000 (15:24 +0800)
committerYan, Zheng <zyan@redhat.com>
Fri, 9 Feb 2018 09:46:55 +0000 (17:46 +0800)
commit30301f7fa5a6d17bda1c150e45a6fb57d7be6469
tree98e7f00f971228b08208105ff506e42304b2065c
parenta810e9f1aa37dc16ecfc144afcaf65eae8e3560e
mds: notify all mds about prepared snaptable update

After snaptable update get prepared, push the update preparation to
all active snaptable clients, then send reply to update initiator.
By this way, the initiator know that all mds have record the update
preparation in their cache. When committing the snaptable update,
the initiator notifies all mds about the commit. Bystander mds'
snaptable cache get synchronized when it receives the notification.

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
src/mds/MDSRank.cc
src/mds/MDSTableClient.cc
src/mds/MDSTableClient.h
src/mds/MDSTableServer.cc
src/mds/MDSTableServer.h
src/mds/Server.cc
src/mds/SnapClient.cc
src/mds/SnapClient.h
src/mds/SnapServer.cc
src/mds/SnapServer.h
src/mds/mds_table_types.h