* Transaction::UnlockInodes() may start a new transaction, but we cannot reuse

the one just closed anymore. The fSeparateSubTransactions mechanism should
  make sure that this won't happen.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31954 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2009-07-30 00:06:02 +00:00
parent d280260742
commit 0f779d495b
1 changed files with 5 additions and 0 deletions

View File

@ -997,7 +997,12 @@ Journal::Unlock(Transaction* owner, bool success)
if (status != B_OK)
return status;
// Unlocking the inodes might trigger new transactions, but we
// cannot reuse the current one anymore, as this one is already
// closed.
fSeparateSubTransactions = true;
fOwner->UnlockInodes(success);
fSeparateSubTransactions = false;
}
fTimestamp = system_time();