mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 02:15:45 +02:00
Bug fixes.
1. Fix memory corruption bug in quicklist and listpack due to wrong assert usage. 2. Add HSETNX command and fix skip_exists semantics in OpSet function. 3. Add tests for hsetnx. 4. Add MEMORY USAGE decorator. 5. redis_parser accepts arrays upto 8192 elements. 6. Fix listpack replace call when passing an empty string. 7. Implement "debug object" command.
This commit is contained in:
parent
8a1396de31
commit
cae1403191
14 changed files with 201 additions and 35 deletions
|
@ -223,10 +223,14 @@ CmdArgVec BaseFamilyTest::TestConnWrapper::Args(std::initializer_list<std::strin
|
|||
|
||||
CmdArgVec res;
|
||||
for (auto v : list) {
|
||||
tmp_str_vec.emplace_back(new string{v});
|
||||
auto& s = *tmp_str_vec.back();
|
||||
if (v.empty()) {
|
||||
res.push_back(MutableSlice{});
|
||||
} else {
|
||||
tmp_str_vec.emplace_back(new string{v});
|
||||
auto& s = *tmp_str_vec.back();
|
||||
|
||||
res.emplace_back(s.data(), s.size());
|
||||
res.emplace_back(s.data(), s.size());
|
||||
}
|
||||
}
|
||||
|
||||
return res;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue