From 2df7ca545d85ec8fb669b5157104aba504c2be40 Mon Sep 17 00:00:00 2001 From: Grisha Kotler Date: Thu, 21 Nov 2024 22:43:19 +0200 Subject: [PATCH] RavenDB-22986 - change struct size to 8 --- src/Voron/Impl/FreeSpace/FreeSpaceHandling.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Voron/Impl/FreeSpace/FreeSpaceHandling.cs b/src/Voron/Impl/FreeSpace/FreeSpaceHandling.cs index 884cbe031175..1e9ae1d346a2 100644 --- a/src/Voron/Impl/FreeSpace/FreeSpaceHandling.cs +++ b/src/Voron/Impl/FreeSpace/FreeSpaceHandling.cs @@ -17,12 +17,14 @@ public sealed class FreeSpaceHandling : IFreeSpaceHandling private readonly Dictionary _maxConsecutiveRangePerSection = new(); - [StructLayout(LayoutKind.Sequential, Size = 6)] + [StructLayout(LayoutKind.Sequential, Size = 8)] public struct SectionMetadata() { public ushort Max = NumberOfPagesInSection; public ushort StartBits = NumberOfPagesInSection; public ushort EndBits = NumberOfPagesInSection; + + private ushort Padding = 0; } static FreeSpaceHandling()