diff --git a/src/jrd/replication/Applier.cpp b/src/jrd/replication/Applier.cpp index 1ca2e8fc8d..92cd20ade0 100644 --- a/src/jrd/replication/Applier.cpp +++ b/src/jrd/replication/Applier.cpp @@ -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; } diff --git a/src/jrd/replication/Replicator.cpp b/src/jrd/replication/Replicator.cpp index 5702d31ba2..c290ecc238 100644 --- a/src/jrd/replication/Replicator.cpp +++ b/src/jrd/replication/Replicator.cpp @@ -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;