Skip to content

Fix getKeysUsingKeySpecs keynum case ignoring keystep when calc the last key#3197

Merged
madolson merged 1 commit into
valkey-io:unstablefrom
enjoy-binbin:fix_keystep
Feb 23, 2026
Merged

Fix getKeysUsingKeySpecs keynum case ignoring keystep when calc the last key#3197
madolson merged 1 commit into
valkey-io:unstablefrom
enjoy-binbin:fix_keystep

Conversation

@enjoy-binbin

Copy link
Copy Markdown
Member

This issue was encountered while processing #3121. Currently in all our
commands with KSPEC_FK_KEYNUM, key step is 1. So this bug does not currently
affect any core commands.

If we have commands with different key step values, calculting the last key
in here will casue problems since we are not including step in the calculation.

…ast key

This issue was encountered while processing valkey-io#3121. Currently in all our
commands with KSPEC_FK_KEYNUM, key step is 1. So this bug does not currently
affect any core commands.

If we have commands with different key step values, calculting the last key
in here will casue problems since we are not including step in the calculation.

Signed-off-by: Binbin <binloveplay1314@qq.com>

@madolson madolson left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I couldn't find any modules impacted by this.

@madolson madolson merged commit 1f47332 into valkey-io:unstable Feb 23, 2026
23 checks passed
@codecov

codecov Bot commented Feb 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 0.00%. Comparing base (9cbe104) to head (e45c0b9).
⚠️ Report is 21 commits behind head on unstable.

Additional details and impacted files
@@       Coverage Diff        @@
##   unstable   #3197   +/-   ##
================================
================================
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@enjoy-binbin enjoy-binbin deleted the fix_keystep branch February 24, 2026 03:10
hpatro pushed a commit to hpatro/valkey that referenced this pull request Mar 5, 2026
…ast key (valkey-io#3197)

This issue was encountered while processing valkey-io#3121. Currently in all our
commands with KSPEC_FK_KEYNUM, key step is 1. So this bug does not
currently
affect any core commands.

If we have commands with different key step values, calculting the last
key
in here will casue problems since we are not including step in the
calculation.

Signed-off-by: Binbin <binloveplay1314@qq.com>
Signed-off-by: Harkrishn Patro <bunty.hari@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants