summaryrefslogtreecommitdiff
path: root/contrib/amcheck/verify_heapam.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/amcheck/verify_heapam.c')
-rw-r--r--contrib/amcheck/verify_heapam.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/amcheck/verify_heapam.c b/contrib/amcheck/verify_heapam.c
index c1847d1b8a4..d393e6ca33d 100644
--- a/contrib/amcheck/verify_heapam.c
+++ b/contrib/amcheck/verify_heapam.c
@@ -1596,7 +1596,7 @@ check_tuple_attribute(HeapCheckContext *ctx)
/* Skip non-varlena values, but update offset first */
if (thisatt->attlen != -1)
{
- ctx->offset = att_align_nominal(ctx->offset, thisatt->attalign);
+ ctx->offset = att_nominal_alignby(ctx->offset, thisatt->attalignby);
ctx->offset = att_addlength_pointer(ctx->offset, thisatt->attlen,
tp + ctx->offset);
if (ctx->tuphdr->t_hoff + ctx->offset > ctx->lp_len)
@@ -1612,8 +1612,8 @@ check_tuple_attribute(HeapCheckContext *ctx)
}
/* Ok, we're looking at a varlena attribute. */
- ctx->offset = att_align_pointer(ctx->offset, thisatt->attalign, -1,
- tp + ctx->offset);
+ ctx->offset = att_pointer_alignby(ctx->offset, thisatt->attalignby, -1,
+ tp + ctx->offset);
/* Get the (possibly corrupt) varlena datum */
attdatum = fetchatt(thisatt, tp + ctx->offset);