Skip to content

Commit

Permalink
multi command throught cache
Browse files Browse the repository at this point in the history
  • Loading branch information
liuyuecai committed Jul 18, 2024
1 parent f4cfbde commit eca26e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion include/pika_command.h
Original file line number Diff line number Diff line change
Expand Up @@ -573,12 +573,13 @@ class Cmd : public std::enable_shared_from_this<Cmd> {
uint32_t GetCmdId() const { return cmdId_; };
bool CheckArg(uint64_t num) const;

void DoCommand(const HintKeys& hint_key = HintKeys());

protected:
// enable copy, used default copy
// Cmd(const Cmd&);
void ProcessCommand(const HintKeys& hint_key = HintKeys());
void InternalProcessCommand(const HintKeys& hint_key);
void DoCommand(const HintKeys& hint_key);
void LogCommand() const;

std::string name_;
Expand Down
2 changes: 1 addition & 1 deletion src/pika_transaction.cc
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ void ExecCmd::Do() {
}
client_conn->SetTxnFailedFromDBs(each_cmd_info.db_->GetDBName());
} else {
cmd->Do();
cmd->DoCommand();
if (cmd->res().ok() && cmd->is_write()) {
cmd->DoBinlog();
auto db_keys = cmd->current_key();
Expand Down

0 comments on commit eca26e8

Please sign in to comment.