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:
@@ -842,6 +842,8 @@ BlockAllocator::CheckNextNode(check_control *control)
|
|||||||
|
|
||||||
// check if the inode's name is the same as in the b+tree
|
// check if the inode's name is the same as in the b+tree
|
||||||
if (inode->IsRegularNode()) {
|
if (inode->IsRegularNode()) {
|
||||||
|
SimpleLocker locker(inode->SmallDataLock());
|
||||||
|
|
||||||
const char *localName = inode->Name();
|
const char *localName = inode->Name();
|
||||||
if (localName == NULL || strcmp(localName, name)) {
|
if (localName == NULL || strcmp(localName, name)) {
|
||||||
control->errors |= BFS_NAMES_DONT_MATCH;
|
control->errors |= BFS_NAMES_DONT_MATCH;
|
||||||
|
|||||||
Reference in New Issue
Block a user