Skip to content
Browse files

Added a FIXME to the btree index routines (to check state of items).

  • Loading branch information...
1 parent c0a5c16 commit 9bcc85f0eb95c91fb4845ba8bd80fd92c7b346c0 @tvondra committed
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/index.c
View
4 src/index.c
@@ -104,7 +104,11 @@ uint32 check_index_tuples(Relation rel, PageHeader header, char *buffer, int blo
ereport(DEBUG1, (errmsg("[%d] max number of tuples = %d", block, ntuples)));
+ /* FIXME check btpo_flags (BTP_LEAF, BTP_ROOT, BTP_DELETED, BTP_META, BTP_HALF_DEAD,
+ * BTP_SPLIT_END and BTP_HAS_GARBAGE) and act accordingly */
+
for (i = 0; i < ntuples; i++) {
+ /* FIXME this should check lp_flags, just as the heap check */
nerrs += check_index_tuple(rel, header, block, i, buffer);
}

0 comments on commit 9bcc85f

Please sign in to comment.
Something went wrong with that request. Please try again.