Skip to content

Commit

Permalink
fix compatiable issue with blackwidow (OpenAtomFoundation#1354)
Browse files Browse the repository at this point in the history
  • Loading branch information
wanghenshui authored Mar 31, 2023
1 parent 4491942 commit e445048
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/storage/src/custom_comparator.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ class ListsDataKeyComparatorImpl : public rocksdb::Comparator {
public:
ListsDataKeyComparatorImpl() { }

// keep compatible with blackwidow
const char* Name() const override {
return "storage.ListsDataKeyComparator";
return "blackwidow.ListsDataKeyComparator";
}

int Compare(const Slice& a, const Slice& b) const override {
Expand Down Expand Up @@ -91,10 +92,10 @@ class ListsDataKeyComparatorImpl : public rocksdb::Comparator {
*/
class ZSetsScoreKeyComparatorImpl : public rocksdb::Comparator {
public:
// keep compatible with blackwidow
const char* Name() const override {
return "storage.ZSetsScoreKeyComparator";
return "blackwidow.ZSetsScoreKeyComparator";
}

int Compare(const Slice& a, const Slice& b) const override {
assert(a.size() > sizeof(int32_t));
assert(a.size() >= DecodeFixed32(a.data())
Expand Down

0 comments on commit e445048

Please sign in to comment.