From: Alexander Borisov Date: Mon, 8 Apr 2019 16:01:56 +0000 (+0300) Subject: Saving hash key to result for each() function in level hash. X-Git-Tag: 0.3.2~69 X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/static/gitweb.js?a=commitdiff_plain;h=bac285257e87cb913f731df7dff51c58270d5df8;p=njs.git Saving hash key to result for each() function in level hash. --- 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;