Fix warning on Mac OS
This commit is contained in:
parent
5aa81f04fa
commit
6c72079d77
@ -562,8 +562,8 @@ size_t MemTable::CountSuccessiveMergeEntries(const LookupKey& key) {
|
|||||||
const char* entry = iter->key();
|
const char* entry = iter->key();
|
||||||
uint32_t key_length = 0;
|
uint32_t key_length = 0;
|
||||||
const char* iter_key_ptr = GetVarint32Ptr(entry, entry + 5, &key_length);
|
const char* iter_key_ptr = GetVarint32Ptr(entry, entry + 5, &key_length);
|
||||||
if (!comparator_.comparator.user_comparator()->Compare(
|
if (comparator_.comparator.user_comparator()->Compare(
|
||||||
Slice(iter_key_ptr, key_length - 8), key.user_key()) == 0) {
|
Slice(iter_key_ptr, key_length - 8), key.user_key()) != 0) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user