lru: remove commented section

This commit is contained in:
Minglei Jin 2024-10-30 14:42:13 +08:00
parent 8a3bc31daa
commit ba88253bf1
1 changed files with 1 additions and 8 deletions

View File

@ -168,14 +168,7 @@ static SLRUEntry **taosLRUEntryTableFindPtr(SLRUEntryTable *table, const void *k
while (*entry && ((*entry)->hash != hash || memcmp(key, (*entry)->keyData, keyLen) != 0)) {
entry = &(*entry)->nextHash;
}
/*
SLRUEntry *pentry = table->list[hash >> (32 - table->lengthBits)];
SLRUEntry **entry = &table->list[hash >> (32 - table->lengthBits)];
while (pentry && (pentry->hash != hash || memcmp(key, pentry->keyData, keyLen) != 0)) {
entry = &pentry->nextHash;
pentry = *entry;
}
*/
return entry;
}