8
0
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:
Vlad Khorsun 2023-09-02 12:29:08 +03:00
parent b2eb581b2f
commit 469715dbf9
2 changed files with 3 additions and 4 deletions

View File

@ -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];

View File

@ -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))
{