From bce831ef4a524e13b93c684dacefa2f157e923c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Mon, 10 Aug 2009 14:20:59 +0000 Subject: [PATCH] * Don't reset fSeparateSubTransactions but restore its previous value. This fixes bug #4201. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32227 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/kernel/file_systems/bfs/Journal.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/add-ons/kernel/file_systems/bfs/Journal.cpp b/src/add-ons/kernel/file_systems/bfs/Journal.cpp index 44b8d46e68..8e9aeb0a48 100644 --- a/src/add-ons/kernel/file_systems/bfs/Journal.cpp +++ b/src/add-ons/kernel/file_systems/bfs/Journal.cpp @@ -1000,9 +1000,10 @@ Journal::Unlock(Transaction* owner, bool success) // Unlocking the inodes might trigger new transactions, but we // cannot reuse the current one anymore, as this one is already // closed. + bool separateSubTransactions = fSeparateSubTransactions; fSeparateSubTransactions = true; fOwner->UnlockInodes(success); - fSeparateSubTransactions = false; + fSeparateSubTransactions = separateSubTransactions; } fTimestamp = system_time();