fix: the error bugs in getrange and setrange in pika 3.5 version#3106
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
…into hotfix3.5/fix_getsetrange
| } | ||
| int64_t strlen = full_value.size(); | ||
|
|
||
| if (start < 0) { |
| void SetProtoMaxBulkLen(const int64_t value) { | ||
| std::lock_guard l(rwlock_); | ||
| TryPushDiffCommands("proto-max-bulk-len", std::to_string(value)); | ||
| proto_max_bulk_len_ = value; |
There was a problem hiding this comment.
这个参数我理解其实就是限制了string类型的value大小,是不是换个别的名字更好理解?
| } | ||
| value_ = argv_[3]; | ||
| // Read the proto-max-bulk-len parameter settings in the pika configuration file pika_conf | ||
| const int64_t PROTO_MAX_BULK_LEN = g_pika_conf->proto_max_bulk_len(); |
…AtomFoundation#3106) Co-authored-by: caiyu <15260903118@163.com>
修复bug #3092:解决导致pika服务崩溃的错误漏洞
执行GETRANGE key1 1 4294967296两次后服务崩溃的原因
执行SETRANGE key1 9223372036854775757 value2后服务崩溃的原因
修改文件部分
Summary by CodeRabbit
New Features
Bug Fixes
Tests