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:
Roman Gershman 2022-04-04 22:48:45 +03:00
parent 8a1396de31
commit cae1403191
14 changed files with 201 additions and 35 deletions

View file

@ -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;