Skip to content

Commit

Permalink
RavenDB-22986 - change struct size to 8
Browse files Browse the repository at this point in the history
  • Loading branch information
grisha-kotler committed Nov 21, 2024
1 parent 11c6fcd commit 2df7ca5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Voron/Impl/FreeSpace/FreeSpaceHandling.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,14 @@ public sealed class FreeSpaceHandling : IFreeSpaceHandling

private readonly Dictionary<long, SectionMetadata> _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()
Expand Down

0 comments on commit 2df7ca5

Please sign in to comment.