Skip to content

Commit

Permalink
lowering MaxRegistrations (#836)
Browse files Browse the repository at this point in the history
  • Loading branch information
TalZaccai authored Nov 27, 2024
1 parent 8ffc705 commit 64bd546
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/server/Custom/CustomCommandManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace Garnet.server
public class CustomCommandManager
{
internal static readonly ushort StartOffset = (ushort)(RespCommandExtensions.LastValidCommand + 1);
internal static readonly int MaxRegistrations = ushort.MaxValue - StartOffset;
internal static readonly int MaxRegistrations = 512 - StartOffset; // Temporary fix to reduce map sizes
internal static readonly byte TypeIdStartOffset = (byte)(GarnetObjectTypeExtensions.LastObjectType + 1);
internal static readonly int MaxTypeRegistrations = (byte)(GarnetObjectTypeExtensions.FirstSpecialObjectType) - TypeIdStartOffset;

Expand Down

0 comments on commit 64bd546

Please sign in to comment.