Skip to content

Commit

Permalink
fix slot may null
Browse files Browse the repository at this point in the history
  • Loading branch information
Mixficsol committed Jul 10, 2023
1 parent 5c6cc1b commit af1e51b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/pika_command.cc
Original file line number Diff line number Diff line change
Expand Up @@ -905,7 +905,11 @@ void Cmd::ProcessMultiSlotCmd() {
}
}

void Cmd::ProcessDoNotSpecifySlotCmd() { Do(); }
void Cmd::ProcessDoNotSpecifySlotCmd() {
std::shared_ptr<Slot> slot;
slot = g_pika_server->GetSlotByDBName(db_name_);
Do(slot);
}

bool Cmd::is_read() const { return ((flag_ & kCmdFlagsMaskRW) == kCmdFlagsRead); }
bool Cmd::is_write() const { return ((flag_ & kCmdFlagsMaskRW) == kCmdFlagsWrite); }
Expand Down

0 comments on commit af1e51b

Please sign in to comment.