mirror of
https://github.com/ceph/ceph
synced 2025-03-11 02:39:05 +00:00
Merge pull request #11841 from hjwsm1989/filestore
os/filestore: avoid to get the wrong hardlink number. Reviewed-by: Loic Dachary <ldachary@redhat.com>
This commit is contained in:
commit
8a19d185f2
@ -782,8 +782,9 @@ int LFNIndex::lfn_get_name(const vector<string> &path,
|
||||
*hardlink = 0;
|
||||
else
|
||||
return -errno;
|
||||
}
|
||||
*hardlink = st.st_nlink;
|
||||
} else {
|
||||
*hardlink = st.st_nlink;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user