]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: flush mds log before finishing STATE_STARTING
authorethanwu <ethanwu@synology.com>
Sun, 24 Mar 2024 09:11:16 +0000 (17:11 +0800)
committerJos Collin <jcollin@redhat.com>
Thu, 4 Jul 2024 12:18:07 +0000 (17:48 +0530)
commita99368b38091e55ecc7d6aaf301d1bc167ea9146
treec210533be8e8e10b9563a4b99b5c498c1c47dd9c
parent4e2b7d1f81a49305450d0dfa4cff66cd361b3679
mds: flush mds log before finishing STATE_STARTING

If we donn't flush mds log before requesting STATE_ACTIVE, and
mds happens to stop later before the log reaches journal.
The take-over mds will have no SubtreeMap to replay, and fail
later at non-empty subtree check.

Fixes: https://tracker.ceph.com/issues/65094
Signed-off-by: ethanwu <ethanwu@synology.com>
(cherry picked from commit ee5472edd6fe80ed043c3eb73322348367f9bb22)
src/mds/MDSRank.cc