8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 22:43:04 +01:00

The files rng.cpp, rng.h, rng_proto.h, bookmark.cpp and bookmark.h belong exclusively to PC_ENGINE, that's obsolete functionality.

Eighth step: dbb_refresh_ranges belongs to the obsolete functionality and since it's never set but tested in cch.cpp with two AND, the whole condition will be always false, hence remove the code.
This commit is contained in:
robocop 2006-02-02 07:57:36 +00:00
parent 80334e4b1c
commit 25c08aea67
2 changed files with 0 additions and 29 deletions

View File

@ -5261,32 +5261,6 @@ static SSHORT lock_buffer(
**************************************/
SET_TDBB(tdbb);
#ifdef PAGE_LATCHING
Database* dbb = tdbb->tdbb_database;
if (dbb->dbb_refresh_ranges && bdb->bdb_flags & BDB_writer &&
(page_type == pag_data || page_type == pag_index))
{
/* This gives refresh cache ranges the potential to work with page
* latching by taking out a temporary page lock for notification
* purposes.
* Fix cache ranges on NetWare due to latching (bug 7199)
* Marion change # 18270, 13-Oct-1994
*/
Lock refresh;
refresh.lck_dbb = dbb;
refresh.lck_type = LCK_bdb;
refresh.lck_owner_handle =
LCK_get_owner_handle(tdbb, refresh.lck_type);
refresh.lck_parent = dbb->dbb_lock;
refresh.lck_length = sizeof(SLONG);
refresh.lck_key.lck_long = bdb->bdb_page;
if (LCK_lock_non_blocking(tdbb, &refresh, LCK_write, -1))
LCK_release(tdbb, &refresh);
}
return ((bdb->bdb_flags & BDB_read_pending) ? 1 : 0);
#else
const USHORT lock_type =

View File

@ -210,9 +210,6 @@ public:
USHORT dbb_max_idx; /* max number of indexes on a root page */
USHORT dbb_use_count; /* active count of threads */
USHORT dbb_shutdown_delay; /* seconds until forced shutdown */
#if defined(PC_ENGINE) || defined(SUPERSERVER)
USHORT dbb_refresh_ranges; /* active count of refresh ranges */
#endif
USHORT dbb_prefetch_sequence; /* sequence to pace frequency of prefetch requests */
USHORT dbb_prefetch_pages; /* prefetch pages per request */
Firebird::string dbb_spare_string; /* random buffer */