Skip to content

Commit

Permalink
Tidy src/commands (#1137)
Browse files Browse the repository at this point in the history
Edit files according to clang-tidy tips and narrowing conversion
were left untouched.
  • Loading branch information
torwig authored Nov 25, 2022
1 parent f185bef commit 272c9ef
Show file tree
Hide file tree
Showing 3 changed files with 936 additions and 568 deletions.
2 changes: 1 addition & 1 deletion src/cluster/cluster.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class Cluster {
Status SetSlotImported(int slot);
Status GetSlotsInfo(std::vector<SlotInfo> *slot_infos);
Status GetClusterInfo(std::string *cluster_infos);
uint64_t GetVersion() { return version_; }
int64_t GetVersion() const { return version_; }
static bool IsValidSlot(int slot) { return slot >= 0 && slot < kClusterSlots; }
bool IsNotMaster();
bool IsWriteForbiddenSlot(int slot);
Expand Down
Loading

0 comments on commit 272c9ef

Please sign in to comment.