Skip to content

Conversation

SmoothDenis
Copy link
Contributor

What problem are we solving?

When KvPut receives an empty value, it should delete the key and return immediately
Previously, the function would call KvDelete but then continue execution and call KvPut with the empty value, recreating the entry that was just deleted

How are we solving the problem?

Added missing return statement after successful KvDelete operation

How is the PR tested?

Manual testing with grpcurl commands sending empty values to KvPut
grpcurl -plaintext -d '{"key":"dGVzdGtleQ==", "value":""}' localhost:18888 filer_pb.SeaweedFiler/KvPut
Verified that keys are properly deleted and not recreated

Checks

  • I have added unit tests if possible.
  • I will add related wiki document changes and link to this PR after merging.

@chrislusf chrislusf merged commit c99530e into seaweedfs:master Jun 6, 2025
6 of 7 checks passed
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.

2 participants