mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 18:35:46 +02:00
feat(cluster): check command keys ownership (#1194)
* feat(cluster): check command keys ownership on cluster mode Signed-off-by: adi_holden <adi@dragonflydb.io>
This commit is contained in:
parent
36cd15a196
commit
577472eb22
9 changed files with 205 additions and 16 deletions
|
@ -118,6 +118,10 @@ class Service : public facade::ServiceInterface {
|
|||
// Return false if command is invalid and reply with error.
|
||||
bool VerifyCommand(const CommandId* cid, CmdArgList args, ConnectionContext* cntx);
|
||||
|
||||
// Return false if not all keys are owned by the server when running in cluster mode.
|
||||
// If false is returned error was sent to the client.
|
||||
bool CheckKeysOwnership(const CommandId* cid, CmdArgList args, ConnectionContext* dfly_cntx);
|
||||
|
||||
const CommandId* FindCmd(CmdArgList args) const;
|
||||
|
||||
void EvalInternal(const EvalArgs& eval_args, Interpreter* interpreter, ConnectionContext* cntx);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue