DRY max size

This commit is contained in:
Andrew Kane
2023-10-04 21:43:34 -07:00
parent 4ef5bca275
commit 6e1312ddbe
3 changed files with 4 additions and 2 deletions

View File

@@ -117,7 +117,7 @@ CreateElementPages(HnswBuildState * buildstate)
ListCell *lc;
/* Calculate sizes */
maxSize = BLCKSZ - MAXALIGN(SizeOfPageHeaderData) - MAXALIGN(sizeof(HnswPageOpaqueData)) - sizeof(ItemIdData);
maxSize = HNSW_MAX_SIZE;
etupSize = HNSW_ELEMENT_TUPLE_SIZE(dimensions);
/* Allocate once */