Skip to content

Commit

Permalink
[squash me] correct spelling of 'UpperBound' in function names
Browse files Browse the repository at this point in the history
  • Loading branch information
RiversJin committed Jan 17, 2025
1 parent 9a0998e commit fd18f73
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/cluster/slot_migrate.cc
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ Status SlotMigrator::sendSnapshotByCmd() {
std::string prefix = ComposeSlotKeyPrefix(namespace_, slot_range.start);
LOG(INFO) << "[migrate] Iterate keys of slot(s), key's prefix: " << prefix;

std::string upper_bound = ComposeSlotKeyUperBound(namespace_, slot_range.end);
std::string upper_bound = ComposeSlotKeyUpperBound(namespace_, slot_range.end);
rocksdb::ReadOptions read_options = storage_->DefaultScanOptions();
read_options.snapshot = slot_snapshot_;
Slice prefix_slice(prefix);
Expand Down Expand Up @@ -1274,7 +1274,7 @@ Status SlotMigrator::sendSnapshotByRawKV() {
LOG(INFO) << fmt::format("[migrate] Migrating snapshot of slot(s) {} by raw key value", slot_range.String());

auto prefix = ComposeSlotKeyPrefix(namespace_, slot_range.start);
auto upper_bound = ComposeSlotKeyUperBound(namespace_, slot_range.end);
auto upper_bound = ComposeSlotKeyUpperBound(namespace_, slot_range.end);

rocksdb::ReadOptions read_options = storage_->DefaultScanOptions();
read_options.snapshot = slot_snapshot_;
Expand Down
2 changes: 1 addition & 1 deletion src/storage/redis_metadata.cc
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ std::string ComposeSlotKeyPrefix(const Slice &ns, int slotid) {
return output;
}

std::string ComposeSlotKeyUperBound(const Slice &ns, int slotid) {
std::string ComposeSlotKeyUpperBound(const Slice &ns, int slotid) {
std::string output;

PutFixed8(&output, static_cast<uint8_t>(ns.size()));
Expand Down
2 changes: 1 addition & 1 deletion src/storage/redis_metadata.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ template <typename T = Slice>
[[nodiscard]] std::tuple<T, T> ExtractNamespaceKey(Slice ns_key, bool slot_id_encoded);
[[nodiscard]] std::string ComposeNamespaceKey(const Slice &ns, const Slice &key, bool slot_id_encoded);
[[nodiscard]] std::string ComposeSlotKeyPrefix(const Slice &ns, int slotid);
[[nodiscard]] std::string ComposeSlotKeyUperBound(const Slice &ns, int slotid);
[[nodiscard]] std::string ComposeSlotKeyUpperBound(const Slice &ns, int slotid);

class InternalKey {
public:
Expand Down

0 comments on commit fd18f73

Please sign in to comment.