mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-10 09:55:45 +02:00
fix: consume parser error on dfly load (#4556)
* fix dcheck crash on dfly load * fix dfly load with more than required arguments Signed-off-by: kostas <kostas@dragonflydb.io>
This commit is contained in:
parent
dc3a91e083
commit
a40b5063e2
1 changed files with 1 additions and 5 deletions
|
@ -528,11 +528,7 @@ void DflyCmd::Load(CmdArgList args, RedisReplyBuilder* rb, ConnectionContext* cn
|
|||
existing_keys = ServerFamily::LoadExistingKeys::kOverride;
|
||||
}
|
||||
|
||||
if (parser.HasNext()) {
|
||||
parser.Error();
|
||||
}
|
||||
|
||||
if (parser.HasError()) {
|
||||
if (parser.Error() || parser.HasNext()) {
|
||||
return rb->SendError(kSyntaxErr);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue