mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 20:03:02 +01:00
Rename setting: TpcBlockSize -> TipCacheBlockSize
This commit is contained in:
parent
90eca16cb7
commit
0ea61c13f8
@ -858,7 +858,7 @@
|
||||
#
|
||||
# Type: integer
|
||||
#
|
||||
#TpcBlockSize = 4M
|
||||
#TipCacheBlockSize = 4M
|
||||
|
||||
|
||||
# ----------------------------
|
||||
|
@ -67,7 +67,7 @@ Commit Number. Whole array is split on blocks of fixed size. Array contains CN's
|
||||
transactions between OIT and Next markers, thus new block is allocated when Next moves out of
|
||||
scope of higher block, and old block is released when OIT moves out of lower block.
|
||||
|
||||
Block size could be set in firebird.conf using new setting **TpcBlockSize**. Default value is
|
||||
Block size could be set in firebird.conf using new setting **TipCacheBlockSize**. Default value is
|
||||
4MB and it could keep 512K transactions.
|
||||
|
||||
# Statement level read consistency for read-committed transactions
|
||||
|
@ -225,7 +225,7 @@ const Config::ConfigEntry Config::entries[MAX_CONFIG_KEY] =
|
||||
{TYPE_INTEGER, "ExtConnPoolSize", (ConfigValue) 0},
|
||||
{TYPE_INTEGER, "ExtConnPoolLifeTime", (ConfigValue) 7200},
|
||||
{TYPE_INTEGER, "SnapshotsMemSize", (ConfigValue) 65536}, // bytes
|
||||
{TYPE_INTEGER, "TpcBlockSize", (ConfigValue) 4194304}, // bytes
|
||||
{TYPE_INTEGER, "TipCacheBlockSize", (ConfigValue) 4194304}, // bytes
|
||||
{TYPE_BOOLEAN, "ReadConsistency", (ConfigValue) true}
|
||||
};
|
||||
|
||||
@ -745,9 +745,9 @@ ULONG Config::getSnapshotsMemSize() const
|
||||
return rc;
|
||||
}
|
||||
|
||||
ULONG Config::getTpcBlockSize() const
|
||||
ULONG Config::getTipCacheBlockSize() const
|
||||
{
|
||||
SINT64 rc = get<SINT64>(KEY_TPC_BLOCK_SIZE);
|
||||
SINT64 rc = get<SINT64>(KEY_TIP_CACHE_BLOCK_SIZE);
|
||||
if (rc <= 0 || rc > MAX_ULONG)
|
||||
{
|
||||
rc = 4194304;
|
||||
|
@ -150,7 +150,7 @@ public:
|
||||
KEY_EXT_CONN_POOL_SIZE,
|
||||
KEY_EXT_CONN_POOL_LIFETIME,
|
||||
KEY_SNAPSHOTS_MEM_SIZE,
|
||||
KEY_TPC_BLOCK_SIZE,
|
||||
KEY_TIP_CACHE_BLOCK_SIZE,
|
||||
KEY_READ_CONSISTENCY,
|
||||
MAX_CONFIG_KEY // keep it last
|
||||
};
|
||||
@ -377,7 +377,7 @@ public:
|
||||
|
||||
ULONG getSnapshotsMemSize() const;
|
||||
|
||||
ULONG getTpcBlockSize() const;
|
||||
ULONG getTipCacheBlockSize() const;
|
||||
|
||||
bool getReadConsistency() const;
|
||||
};
|
||||
|
@ -64,7 +64,7 @@ bool TipCache::GlobalTpcInitializer::initialize(Firebird::SharedMemoryBase* sm,
|
||||
|
||||
header->latest_commit_number.store(CN_PREHISTORIC, std::memory_order_relaxed);
|
||||
header->latest_statement_id.store(0, std::memory_order_relaxed);
|
||||
header->tpc_block_size = m_cache->m_dbb->dbb_config->getTpcBlockSize();
|
||||
header->tpc_block_size = m_cache->m_dbb->dbb_config->getTipCacheBlockSize();
|
||||
|
||||
m_cache->initTransactionsPerBlock();
|
||||
m_cache->loadInventoryPages(tdbb);
|
||||
|
Loading…
Reference in New Issue
Block a user