fs/kvdb:extend val_len to 2 bytes to support property value up to 1024 - #5
Open
wjh199742 wants to merge 1 commit into
Open
fs/kvdb:extend val_len to 2 bytes to support property value up to 1024#5wjh199742 wants to merge 1 commit into
wjh199742 wants to merge 1 commit into
Conversation
Encode val_len as 2 little-endian bytes in the client/server wire protocol and raise PROP_VALUE_MAX from 255 to 1024, so larger property values can be transferred. Signed-off-by: jinghengwan <jinghengwan@bestechnic.com>
wjh199742
requested review from
a team,
GUIDINGLI,
huangcaihua-xm and
xiaoxiang781216
as code owners
July 10, 2026 03:58
❌ CLA Signature Required@wjh199742 Some contributors need to sign the CLA:
Please:
📋 View detailed check results: Action Run #29067966506 💡 Tip: All contributors must sign the CLA before the PR can be merged. |
Author
|
Hi @xiaoxiang781216 , Could you please help review this PR? Thanks. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Encode val_len as 2 little-endian bytes in the client/server wire protocol and raise PROP_VALUE_MAX from 255 to 1024, so larger property values can be transferred.
Note: Please adhere to Contributing Guidelines.
Summary
Update KVDB client/server protocol to support larger property values.
The original protocol uses 1-byte val_len, which limits property values
to 255 bytes. This patch changes val_len to 2-byte little-endian format
and increases PROP_VALUE_MAX from 255 to 1024.
This allows KVDB to transfer larger property values through the
client/server interface.
Impact
be updated together.
Testing
Tested KVDB client/server communication with:
Verified that property set/get operations work correctly.