From cad6548679cf1bbc508a98f1b83afb447fc732d7 Mon Sep 17 00:00:00 2001 From: Robert Haas Date: Thu, 2 Aug 2012 16:23:31 +0000 Subject: [PATCH] Comment fixes. --- src/backend/utils/hash/chash.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/backend/utils/hash/chash.c b/src/backend/utils/hash/chash.c index f74cc36da3..42e6691043 100644 --- a/src/backend/utils/hash/chash.c +++ b/src/backend/utils/hash/chash.c @@ -627,12 +627,13 @@ CHashStatistics(CHashTable table, uint64 *stats) * Caller must suppress garbage collection for the target bucket before * calling this function, and resume it afterwards. * - * If a matching item is found, res->target will be its arena offset and - * res->found will be true. If not, res->target will be the arena offset of - * the item following the insert position and found will be false. In either - * case, res->pointer_to_target will a pointer to the address where the value - * of target was found. res->target_node will be a pointer to the address of - * the CHashNode with offset res->target, unless res->target is invalid. + * If a matching item is found, res->target will be a CHashPtr to that item + * and res->found will be true. If not, res->target will be a CHashPtr to the + * item which follows the insert position in the bucket chain, and res->found + * will be false. In either case, res->pointer_to_target will a pointer to + * the address where the value of target was found. res->target_node will be + * a pointer to the address of the CHashNode referenced by res->target, unless + * res->target is invalid. * * NB: If you change this function, make sure to adjust CHashBucketCleanup * similarly. -- 2.39.5