Skip to content

Commit

Permalink
fix bug with getting long value (microsoft#922)
Browse files Browse the repository at this point in the history
  • Loading branch information
vazois authored Jan 18, 2025
1 parent a7669ba commit e9f6b50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/cluster/Session/RespClusterBasicCommands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ private bool NetworkClusterSetConfigEpoch(out bool invalidParameters)
return true;
}

if (!parseState.TryGetInt(0, out var configEpoch))
if (!parseState.TryGetLong(0, out var configEpoch))
{
while (!RespWriteUtils.WriteError(CmdStrings.RESP_ERR_GENERIC_VALUE_IS_NOT_INTEGER, ref dcurr, dend))
SendAndReset();
Expand Down

0 comments on commit e9f6b50

Please sign in to comment.