Skip to content

Commit

Permalink
fix: fix some compile error (OpenAtomFoundation#1861)
Browse files Browse the repository at this point in the history
Co-authored-by: wangshaoyi <[email protected]>
  • Loading branch information
wangshao1 and wangshaoyi authored Aug 3, 2023
1 parent d7bff59 commit a310b1d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ fi
cd ${BUILD_DIR}

use_pika_tools=""
if [ $1 = "tools" ]; then
if [[ $1 = "tools" ]]; then
use_pika_tools="-DUSE_PIKA_TOOLS=ON"
fi

Expand Down
16 changes: 8 additions & 8 deletions include/pika_list.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,12 @@ class BlockingBaseCmd : public Cmd {
class BLPopCmd final : public BlockingBaseCmd {
public:
BLPopCmd(const std::string& name, int arity, uint16_t flag) : BlockingBaseCmd(name, arity, flag){};
virtual std::vector<std::string> current_key() const {
virtual std::vector<std::string> current_key() const override {
return { keys_ };
}
virtual void Do(std::shared_ptr<Slot> slot = nullptr);
virtual void Split(std::shared_ptr<Slot> slot, const HintKeys& hint_keys){};
virtual void Merge(){};
virtual void Do(std::shared_ptr<Slot> slot = nullptr) override;
virtual void Split(std::shared_ptr<Slot> slot, const HintKeys& hint_keys) override {};
virtual void Merge() override {};
virtual Cmd* Clone() override { return new BLPopCmd(*this); }
void DoInitial() override;
void DoBinlog(const std::shared_ptr<SyncMasterSlot>& slot) override;
Expand Down Expand Up @@ -257,12 +257,12 @@ class LTrimCmd : public Cmd {
class BRPopCmd final : public BlockingBaseCmd {
public:
BRPopCmd(const std::string& name, int arity, uint16_t flag) : BlockingBaseCmd(name, arity, flag){};
virtual std::vector<std::string> current_key() const {
virtual std::vector<std::string> current_key() const override {
return { keys_ };
}
virtual void Do(std::shared_ptr<Slot> slot = nullptr);
virtual void Split(std::shared_ptr<Slot> slot, const HintKeys& hint_keys){};
virtual void Merge(){};
virtual void Do(std::shared_ptr<Slot> slot = nullptr) override;
virtual void Split(std::shared_ptr<Slot> slot, const HintKeys& hint_keys) override {};
virtual void Merge() override {};
virtual Cmd* Clone() override { return new BRPopCmd(*this); }
void DoInitial() override;
void DoBinlog(const std::shared_ptr<SyncMasterSlot>& slot) override;
Expand Down

0 comments on commit a310b1d

Please sign in to comment.