From bac285257e87cb913f731df7dff51c58270d5df8 Mon Sep 17 00:00:00 2001 From: Alexander Borisov Date: Mon, 8 Apr 2019 19:01:56 +0300 Subject: [PATCH] Saving hash key to result for each() function in level hash. --- nxt/nxt_lvlhsh.c | 1 + nxt/nxt_lvlhsh.h | 1 + 2 files changed, 2 insertions(+) diff --git a/nxt/nxt_lvlhsh.c b/nxt/nxt_lvlhsh.c index 0b554e55..9cbb704e 100644 --- a/nxt/nxt_lvlhsh.c +++ b/nxt/nxt_lvlhsh.c @@ -842,6 +842,7 @@ nxt_lvlhsh_bucket_each(nxt_lvlhsh_each_t *lhe) } while (nxt_lvlhsh_free_entry(bucket)); value = nxt_lvlhsh_entry_value(bucket); + lhe->key_hash = nxt_lvlhsh_entry_key(bucket); lhe->entries--; diff --git a/nxt/nxt_lvlhsh.h b/nxt/nxt_lvlhsh.h index 7bcc8314..70f5a5b6 100644 --- a/nxt/nxt_lvlhsh.h +++ b/nxt/nxt_lvlhsh.h @@ -171,6 +171,7 @@ typedef struct { uint32_t current; uint32_t entry; uint32_t entries; + uint32_t key_hash; } nxt_lvlhsh_each_t; -- 2.47.3