forked from dragonflydb/dragonfly
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: more parser improvements (dragonflydb#4177)
The long-term goal is to make the parser to consume the whole input when it returns INPUT_PENDING. It requires several baby step PRs. This PR: 1. Adds more invariant checks 2. Avoids calling RedisParser::Parse with an empty buffer. 3. In bulk string parsing - remove redundant "optimization" of rejecting partial strings of less than 32 bytes, in other words consume small parts as well. The unit test adjusted accordingly. Signed-off-by: Roman Gershman <[email protected]>
- Loading branch information
Showing
3 changed files
with
43 additions
and
27 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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