mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 18:43:02 +01:00
Fixed replication after MetaName improvements
This commit is contained in:
parent
ca12563ba5
commit
9b8c654fd7
@ -118,10 +118,10 @@ namespace
|
||||
return *ptr;
|
||||
}
|
||||
|
||||
const MetaName& getMetaName()
|
||||
const MetaString& getMetaName()
|
||||
{
|
||||
const auto offset = getInt() * sizeof(MetaName);
|
||||
const auto metaPtr = (const MetaName*) (m_metadata + offset);
|
||||
const auto offset = getInt() * sizeof(MetaString);
|
||||
const auto metaPtr = (const MetaString*) (m_metadata + offset);
|
||||
return *metaPtr;
|
||||
}
|
||||
|
||||
|
@ -58,7 +58,7 @@ void Replicator::flush(BatchBlock& block, FlushReason reason, ULONG flags)
|
||||
fb_assert(orgLength > sizeof(Block));
|
||||
block.header.protocol = PROTOCOL_CURRENT_VERSION;
|
||||
block.header.dataLength = orgLength - sizeof(Block);
|
||||
block.header.metaLength = (ULONG) (block.metadata.getCount() * sizeof(MetaName));
|
||||
block.header.metaLength = (ULONG) (block.metadata.getCount() * sizeof(MetaString));
|
||||
block.header.timestamp = TimeZoneUtil::getCurrentGmtTimeStamp().utc_timestamp;
|
||||
block.header.flags |= flags;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user