]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: ensure snapclient is synced before corruption check 56399/head
authorPatrick Donnelly <pdonnell@redhat.com>
Thu, 1 Feb 2024 14:15:37 +0000 (09:15 -0500)
committerPatrick Donnelly <pdonnell@redhat.com>
Fri, 22 Mar 2024 14:32:21 +0000 (10:32 -0400)
commit5621bb5aff95a252c0a4a00823c2b18557e12695
tree19a97b1061052bc002fee88696932a025a63b68a
parent9c4e0c34f1949e7d705fe7ff26a4f4b729df7a45
mds: ensure snapclient is synced before corruption check

During resolve, orphan dirfrags are purged which may result in dentry commits.
If the snapclient is not sync'd (which normally happens as the last step of
up:resolve), then the snapclient indicates the last sequence is 1 which is
always less than a dentry's legitimate "first" value.

Fixes: https://tracker.ceph.com/issues/64058
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit caa34c1f6102f88e2c07f58af72bd886cbcc33b3)
src/mds/CDentry.cc