Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/tools/cephfs/DataScan.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1281,7 +1281,7 @@ int DataScan::scan_links()

for (auto& q : p.second) {
// in the middle of dir fragmentation?
if (newest.dirino == q.dirino && newest.name == q.name) {
if (newest.dirino == q.dirino && newest.name == q.name && newest.frag == q.frag) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you elaborate on what is additionally achieved by comparing the frag id ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doh - never saw this comment. IIRC, it was the case to handle scan links on fragmented directories. I'll check again.

snaps.insert(make_move_iterator(begin(q.snaps)),
make_move_iterator(end(q.snaps)));
continue;
Expand Down Expand Up @@ -1358,7 +1358,7 @@ int DataScan::scan_links()
derr << "Unexpected error reading dentry "
<< p.second.dirfrag() << "/" << p.second.name
<< ": " << cpp_strerror(r) << dendl;
return r;
continue;
Comment thread
dparmar18 marked this conversation as resolved.
Resolved
}

if (inode.inode->ino != p.first || inode.inode->version != p.second.version)
Expand All @@ -1384,7 +1384,7 @@ int DataScan::scan_links()
derr << "Unexpected error reading dentry "
<< p.second.dirfrag() << "/" << p.second.name
<< ": " << cpp_strerror(r) << dendl;
return r;
continue;
}

if (first != CEPH_NOSNAP) {
Expand Down