Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed KeyExists function in KeyValueStore #6984

Merged
merged 2 commits into from
May 27, 2024
Merged

Conversation

yerke26
Copy link
Contributor

@yerke26 yerke26 commented May 6, 2024

Fixes KeyExists function in KeyValueStore

Changes

Types of changes

What types of changes does your code introduce?

  • Bugfix (a non-breaking change that fixes an issue)
  • New feature (a non-breaking change that adds functionality)
  • Breaking change (a change that causes existing functionality not to work as expected)
  • Optimization
  • Refactoring
  • Documentation update
  • Build-related changes
  • Other: Description

Testing

Requires testing

  • Yes
  • No

If yes, did you write tests?

  • Yes
  • No

Notes on testing

Optional. Remove if not applicable.

Documentation

Requires documentation update

  • Yes
  • No

If yes, link the PR to the docs update or the issue with the details labeled docs. Remove if not applicable.

Requires explanation in Release Notes

  • Yes
  • No

If yes, fill in the details here. Remove if not applicable.

Remarks

Optional. Remove if not applicable.

@@ -33,7 +33,7 @@ public interface IReadOnlyKeyValueStore
bool KeyExists(ReadOnlySpan<byte> key)
{
Span<byte> span = GetSpan(key);
bool result = span.IsNull();
bool result = !span.IsNullOrEmpty();
Copy link
Contributor

Choose a reason for hiding this comment

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

I think should just be null.

@LukaszRozmej LukaszRozmej merged commit b2ea0f1 into master May 27, 2024
67 checks passed
@LukaszRozmej LukaszRozmej deleted the fix/key-value-store branch May 27, 2024 13:02
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