Removed some debug output I accidently added to the repository.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2107 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2002-11-28 15:13:08 +00:00
parent 428f0ce25c
commit c78d05895c

View File

@ -1734,12 +1734,6 @@ Inode::Sync()
status_t
Inode::Remove(Transaction *transaction, const char *name, off_t *_id, bool isDirectory)
{
thread_info info;
if (get_thread_info(find_thread(NULL), &info) == B_OK) {
dprintf("stack base = %p, stack end = %p, size = %ld\n", info.stack_base, info.stack_end, (uint32)info.stack_end - (uint32)info.stack_base);
} else
dprintf("get_thread_info() failed\n");
BPlusTree *tree;
if (GetTree(&tree) != B_OK)
RETURN_ERROR(B_BAD_VALUE);
@ -1781,13 +1775,10 @@ Inode::Remove(Transaction *transaction, const char *name, off_t *_id, bool isDir
}
// remove_vnode() allows the inode to be accessed until the last put_vnode()
if (remove_vnode(fVolume->ID(), id) != B_OK) {
dprintf("remove_vnode() failed!!!\n");
if (remove_vnode(fVolume->ID(), id) != B_OK)
return B_ERROR;
}
if (tree->Remove(transaction, name, id) < B_OK) {
dprintf("tree->Remove() failed!!!\n");
unremove_vnode(fVolume->ID(), id);
RETURN_ERROR(B_ERROR);
}
@ -1805,17 +1796,15 @@ Inode::Remove(Transaction *transaction, const char *name, off_t *_id, bool isDir
// fatal error and will not be reported back!
// Deleted inodes won't be visible in queries anyway.
}
if ((inode->Mode() & (S_FILE | S_SYMLINK)) != 0) {
if (inode->IsFile())
index.RemoveSize(transaction, inode);
index.RemoveLastModified(transaction, inode);
}
if (inode->WriteBack(transaction) < B_OK) {
dprintf("inode->WriteBack() failed!!!\n");
if (inode->WriteBack(transaction) < B_OK)
return B_ERROR;
}
return B_OK;
}