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:
Axel Dörfler 2002-11-25 23:30:54 +00:00
parent 2ad0108fbe
commit cb0a9fe094

View File

@ -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;