BFS: Don't try to acquire/put the indices node.
It's not published, so we will just get errors, or (starting with the next commit) assertions.
This commit is contained in:
@@ -481,7 +481,7 @@ Inode::WriteLockInTransaction(Transaction& transaction)
|
|||||||
if ((Flags() & INODE_DELETED) != 0)
|
if ((Flags() & INODE_DELETED) != 0)
|
||||||
fVolume->RemovedInodes().Remove(this);
|
fVolume->RemovedInodes().Remove(this);
|
||||||
|
|
||||||
if (!fVolume->IsInitializing())
|
if (!fVolume->IsInitializing() && this != fVolume->IndicesNode())
|
||||||
acquire_vnode(fVolume->FSVolume(), ID());
|
acquire_vnode(fVolume->FSVolume(), ID());
|
||||||
|
|
||||||
rw_lock_write_lock(&Lock());
|
rw_lock_write_lock(&Lock());
|
||||||
@@ -2509,7 +2509,7 @@ Inode::RemovedFromTransaction()
|
|||||||
|
|
||||||
rw_lock_write_unlock(&Lock());
|
rw_lock_write_unlock(&Lock());
|
||||||
|
|
||||||
if (!fVolume->IsInitializing())
|
if (!fVolume->IsInitializing() && this != fVolume->IndicesNode())
|
||||||
put_vnode(fVolume->FSVolume(), ID());
|
put_vnode(fVolume->FSVolume(), ID());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user