git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 533020d)
Correct comment in simplehash.h.
Mon, 3 Aug 2020 00:17:41 +0000 (12:17 +1200)
Mon, 3 Aug 2020 00:23:05 +0000 (12:23 +1200)
Post-commit review for commit 84c0e4b9.

Author: David Rowley <dgrowleyml@gmail.com>
Discussion: https://postgr.es/m/CAApHDvptBx_%2BUPAzY0uXzopbvPVGKPeZ6Hoy8rnPcWz20Cr0Bw%40mail.gmail.com


diff --git a/src/include/lib/simplehash.h b/src/include/lib/simplehash.h
index 96f0c21f60644cc6b1bc5ea8eab16afd23034590..395be1ca9a7316f30d28d8cf335d3527955537c1 100644 (file)
--- a/src/include/lib/simplehash.h
+++ b/src/include/lib/simplehash.h
@@ -51,7 +51,8 @@
* - SH_STORE_HASH - if defined the hash is stored in the elements
* - SH_GET_HASH(tb, a) - return the field to store the hash in
*
- * The element type is required to contain a "uint32 status" member.
+ * The element type is required to contain a "status" member that can store
+ * the range of values defined in the SH_STATUS enum.
*
* While SH_STORE_HASH (and subsequently SH_GET_HASH) are optional, because
* the hash table implementation needs to compare hashes to move elements
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /