Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/StackExchange.Redis/AutoConfigureInfoField.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ internal enum AutoConfigureInfoField

[AsciiHash("valkey_version")]
ValkeyVersion,

[AsciiHash("server_mode")]
ServerMode,
}

/// <summary>
Expand Down
1 change: 1 addition & 0 deletions src/StackExchange.Redis/ResultProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -920,6 +920,7 @@ protected override bool SetResultCore(PhysicalConnection connection, Message mes
}
break;
case AutoConfigureInfoField.RedisMode:
case AutoConfigureInfoField.ServerMode:
if (ServerTypeMetadata.TryParse(valSpan, out var serverType))
{
server.ServerType = serverType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ public class AutoConfigureInfoFieldUnitTests
[InlineData("run_id", (int)AutoConfigureInfoField.RunId)]
[InlineData("garnet_version", (int)AutoConfigureInfoField.GarnetVersion)]
[InlineData("valkey_version", (int)AutoConfigureInfoField.ValkeyVersion)]
[InlineData("server_mode", (int)AutoConfigureInfoField.ServerMode)]
public void TryParse_CharSpan_KnownFields(string value, int expected)
{
Assert.True(AutoConfigureInfoFieldMetadata.TryParse(value.AsSpan(), out var actual));
Expand Down
Loading