summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_lvlhsh.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2018-03-29 16:35:42 +0300
committerIgor Sysoev <igor@sysoev.ru>2018-03-29 16:35:42 +0300
commit5177b085b13be78d216441d21480caf81eb968c2 (patch)
treeea3c80a789a295d072fd339d10b23515d6dea549 /src/nxt_lvlhsh.c
parent5a9c23e2b4ff39ee4c25f67ece56e3d441edfeed (diff)
downloadunit-5177b085b13be78d216441d21480caf81eb968c2.tar.gz
unit-5177b085b13be78d216441d21480caf81eb968c2.tar.bz2
nxt_lvlhsh_each() refactoring and nxt_lvlhsh_each_init().
Diffstat (limited to '')
-rw-r--r--src/nxt_lvlhsh.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nxt_lvlhsh.c b/src/nxt_lvlhsh.c
index 864d3007..ec433341 100644
--- a/src/nxt_lvlhsh.c
+++ b/src/nxt_lvlhsh.c
@@ -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);