nxt_lvlhsh_each() refactoring and nxt_lvlhsh_each_init().

This commit is contained in:
Igor Sysoev
2018-03-29 16:35:42 +03:00
parent 5a9c23e2b4
commit 5177b085b1
5 changed files with 34 additions and 24 deletions

View File

@@ -782,11 +782,13 @@ nxt_lvlhsh_each(nxt_lvlhsh_t *lh, nxt_lvlhsh_each_t *lhe)
}
if (!nxt_lvlhsh_is_bucket(slot)) {
lhe->current = 0;
goto level;
}
lhe->bucket = nxt_lvlhsh_bucket(lhe->proto, slot);
lhe->entries = nxt_lvlhsh_bucket_entries(lhe->proto, slot);
lhe->entry = 0;
}
return nxt_lvlhsh_bucket_each(lhe);