* "checkfs" would run into a panic (transaction still open) when trying to
write back the bitmap. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28478 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -933,6 +933,7 @@ Journal::Lock(Transaction* owner, bool separateSubTransactions)
|
|||||||
// For that, it would be nice to have some call-back interface in the
|
// For that, it would be nice to have some call-back interface in the
|
||||||
// cache transaction API...
|
// cache transaction API...
|
||||||
|
|
||||||
|
if (fOwner != NULL) {
|
||||||
if (fUnwrittenTransactions > 0) {
|
if (fUnwrittenTransactions > 0) {
|
||||||
// start a sub transaction
|
// start a sub transaction
|
||||||
cache_start_sub_transaction(fVolume->BlockCache(), fTransactionID);
|
cache_start_sub_transaction(fVolume->BlockCache(), fTransactionID);
|
||||||
@@ -947,7 +948,7 @@ Journal::Lock(Transaction* owner, bool separateSubTransactions)
|
|||||||
|
|
||||||
cache_add_transaction_listener(fVolume->BlockCache(), fTransactionID,
|
cache_add_transaction_listener(fVolume->BlockCache(), fTransactionID,
|
||||||
TRANSACTION_IDLE, _TransactionIdle, this);
|
TRANSACTION_IDLE, _TransactionIdle, this);
|
||||||
|
}
|
||||||
return B_OK;
|
return B_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -959,6 +960,7 @@ Journal::Unlock(Transaction* owner, bool success)
|
|||||||
// we only end the transaction if we would really unlock it
|
// we only end the transaction if we would really unlock it
|
||||||
// TODO: what about failing transactions that do not unlock?
|
// TODO: what about failing transactions that do not unlock?
|
||||||
// (they must make the parent fail, too)
|
// (they must make the parent fail, too)
|
||||||
|
if (fOwner != NULL)
|
||||||
_TransactionDone(success);
|
_TransactionDone(success);
|
||||||
|
|
||||||
fTimestamp = system_time();
|
fTimestamp = system_time();
|
||||||
|
|||||||
Reference in New Issue
Block a user