Skip to content

Commit b61eade

Browse files
committed
Merge PR ceph#55412 into main
* refs/pull/55412/head: mds: ensure snapclient is synced before corruption check Reviewed-by: Venky Shankar <[email protected]>
2 parents bdff818 + caa34c1 commit b61eade

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mds/CDentry.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,7 @@ bool CDentry::check_corruption(bool load)
702702
{
703703
auto&& snapclient = dir->mdcache->mds->snapclient;
704704
auto next_snap = snapclient->get_last_seq()+1;
705-
if (first > last || (snapclient->is_server_ready() && first > next_snap)) {
705+
if (first > last || (snapclient->is_synced() && first > next_snap)) {
706706
if (load) {
707707
dout(1) << "loaded already corrupt dentry: " << *this << dendl;
708708
corrupt_first_loaded = true;

0 commit comments

Comments
 (0)