mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-02-02 09:20:39 +01:00
Misc changes per @dyemanov requests
This commit is contained in:
parent
b2eb581b2f
commit
469715dbf9
@ -36,10 +36,10 @@ namespace Jrd {
|
||||
|
||||
class PageToBufferMap
|
||||
{
|
||||
public:
|
||||
static const size_t MAP_SIZE = 64;
|
||||
|
||||
PageToBufferMap(MemoryPool& pool) :
|
||||
public:
|
||||
explicit PageToBufferMap(MemoryPool& pool) :
|
||||
m_map(pool)
|
||||
{
|
||||
Item* items = FB_NEW_POOL(pool) Item[MAP_SIZE];
|
||||
|
@ -3800,8 +3800,7 @@ static BufferDesc* get_buffer(thread_db* tdbb, const PageNumber page, SyncType s
|
||||
|
||||
if (att && att->att_bdb_cache)
|
||||
{
|
||||
BufferDesc* bdb = att->att_bdb_cache->get(page);
|
||||
if (bdb)
|
||||
if (BufferDesc* bdb = att->att_bdb_cache->get(page))
|
||||
{
|
||||
if (bdb->addRef(tdbb, syncType, wait))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user