From f84ad12e339b38a6b49de7e874bae3b4e71f8a15 Mon Sep 17 00:00:00 2001 From: dimitr Date: Wed, 14 May 2008 09:21:01 +0000 Subject: [PATCH] Misc. --- src/jrd/cch.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/jrd/cch.cpp b/src/jrd/cch.cpp index a555fa3d25..ff4c1cff82 100644 --- a/src/jrd/cch.cpp +++ b/src/jrd/cch.cpp @@ -725,17 +725,17 @@ pag* CCH_fetch( * **************************************/ SET_TDBB(tdbb); + Database* dbb = tdbb->getDatabase(); if (window->win_page == HEADER_PAGE_NUMBER) - tdbb->getDatabase()->dbb_backup_manager->lock_shared_database(tdbb, true); + dbb->dbb_backup_manager->lock_shared_database(tdbb, true); CCH_TRACE(("FETCH PAGE=%d", window->win_page)); // FETCH_LOCK will return 0, 1, -1 or -2 const SSHORT fetch_lock_return = - CCH_FETCH_LOCK(tdbb, window, lock_type, LCK_WAIT, latch_wait, - page_type); + CCH_FETCH_LOCK(tdbb, window, lock_type, LCK_WAIT, latch_wait, page_type); if (fetch_lock_return == 1) { @@ -744,7 +744,7 @@ pag* CCH_fetch( } else if (fetch_lock_return == -2 || fetch_lock_return == -1) { if (window->win_page == HEADER_PAGE_NUMBER) - tdbb->getDatabase()->dbb_backup_manager->unlock_shared_database(tdbb); + dbb->dbb_backup_manager->unlock_shared_database(tdbb); return NULL; /* latch or lock timeout */ }