Skip to content

Commit 9c83f6c

Browse files
committed
tools/cephfs/DataScan: test equality of link including frag
To address the possibility of two primary links existing in different fragments. Signed-off-by: Venky Shankar <[email protected]> Signed-off-by: Patrick Donnelly <[email protected]>
1 parent a66a68b commit 9c83f6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/cephfs/DataScan.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1291,7 +1291,7 @@ int DataScan::scan_links()
12911291

12921292
for (auto& q : p.second) {
12931293
// in the middle of dir fragmentation?
1294-
if (newest.dirino == q.dirino && newest.name == q.name) {
1294+
if (newest == q) {
12951295
snaps.insert(make_move_iterator(begin(q.snaps)),
12961296
make_move_iterator(end(q.snaps)));
12971297
continue;

0 commit comments

Comments
 (0)