Fixed a stupid bug, used Inode::Name() without locking.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2087 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
2ad0108fbe
commit
cb0a9fe094
@ -842,6 +842,8 @@ BlockAllocator::CheckNextNode(check_control *control)
|
||||
|
||||
// check if the inode's name is the same as in the b+tree
|
||||
if (inode->IsRegularNode()) {
|
||||
SimpleLocker locker(inode->SmallDataLock());
|
||||
|
||||
const char *localName = inode->Name();
|
||||
if (localName == NULL || strcmp(localName, name)) {
|
||||
control->errors |= BFS_NAMES_DONT_MATCH;
|
||||
|
Loading…
Reference in New Issue
Block a user