]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: force replay sessionmap version 49970/head
authorXiubo Li <xiubli@redhat.com>
Thu, 2 Feb 2023 06:40:48 +0000 (14:40 +0800)
committerXiubo Li <xiubli@redhat.com>
Tue, 14 Feb 2023 01:13:08 +0000 (09:13 +0800)
commit08571e01e86fa8bd4234a35987217806be979e7d
treebe3f40ed58353f2520f76b290e87b7a0f084e9b5
parent186df9b881b2ddb59ded8fa7a5e153de79c219f8
mds: force replay sessionmap version

When expiring the MDLog Segments it will persist the sessionmap, but
in case the number of Segments doesn't reach up to the max segment
threshold then the expiry may not happen.

So if there is a MDS failover then the sessionmap won't be persistent
and cannot be replayed by the standby MDS when it is starting. We
should just force replay the sessionmap version just the way inotable
does.

Fixes: https://tracker.ceph.com/issues/58489
Signed-off-by: Xiubo Li <xiubli@redhat.com>
src/mds/journal.cc