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:
@@ -1734,12 +1734,6 @@ Inode::Sync()
|
|||||||
status_t
|
status_t
|
||||||
Inode::Remove(Transaction *transaction, const char *name, off_t *_id, bool isDirectory)
|
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;
|
BPlusTree *tree;
|
||||||
if (GetTree(&tree) != B_OK)
|
if (GetTree(&tree) != B_OK)
|
||||||
RETURN_ERROR(B_BAD_VALUE);
|
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()
|
// remove_vnode() allows the inode to be accessed until the last put_vnode()
|
||||||
if (remove_vnode(fVolume->ID(), id) != B_OK) {
|
if (remove_vnode(fVolume->ID(), id) != B_OK)
|
||||||
dprintf("remove_vnode() failed!!!\n");
|
|
||||||
return B_ERROR;
|
return B_ERROR;
|
||||||
}
|
|
||||||
|
|
||||||
if (tree->Remove(transaction, name, id) < B_OK) {
|
if (tree->Remove(transaction, name, id) < B_OK) {
|
||||||
dprintf("tree->Remove() failed!!!\n");
|
|
||||||
unremove_vnode(fVolume->ID(), id);
|
unremove_vnode(fVolume->ID(), id);
|
||||||
RETURN_ERROR(B_ERROR);
|
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!
|
// fatal error and will not be reported back!
|
||||||
// Deleted inodes won't be visible in queries anyway.
|
// Deleted inodes won't be visible in queries anyway.
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((inode->Mode() & (S_FILE | S_SYMLINK)) != 0) {
|
if ((inode->Mode() & (S_FILE | S_SYMLINK)) != 0) {
|
||||||
if (inode->IsFile())
|
if (inode->IsFile())
|
||||||
index.RemoveSize(transaction, inode);
|
index.RemoveSize(transaction, inode);
|
||||||
index.RemoveLastModified(transaction, inode);
|
index.RemoveLastModified(transaction, inode);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (inode->WriteBack(transaction) < B_OK) {
|
if (inode->WriteBack(transaction) < B_OK)
|
||||||
dprintf("inode->WriteBack() failed!!!\n");
|
|
||||||
return B_ERROR;
|
return B_ERROR;
|
||||||
}
|
|
||||||
|
|
||||||
return B_OK;
|
return B_OK;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user