mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 18:35:46 +02:00
chore: Split DispatchCommand into validation and main part (#1071)
Signed-off-by: Vladislav Oleshko <vlad@dragonflydb.io>
This commit is contained in:
parent
d9c9d9fc72
commit
90a606851a
2 changed files with 114 additions and 84 deletions
|
@ -114,6 +114,9 @@ class Service : public facade::ServiceInterface {
|
|||
CmdArgList keys, args;
|
||||
};
|
||||
|
||||
// Return false if command is invalid and reply with error.
|
||||
bool VerifyCommand(const CommandId* cid, CmdArgList args, facade::ConnectionContext* cntx);
|
||||
|
||||
void EvalInternal(const EvalArgs& eval_args, Interpreter* interpreter, ConnectionContext* cntx);
|
||||
|
||||
void CallFromScript(CmdArgList args, ObjectExplorer* reply, ConnectionContext* cntx);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue