summaryrefslogtreecommitdiff
path: root/src/backend/access/hash/hashinsert.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/access/hash/hashinsert.c')
-rw-r--r--src/backend/access/hash/hashinsert.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/backend/access/hash/hashinsert.c b/src/backend/access/hash/hashinsert.c
index 10de1580dc2..0f9f97f7e3d 100644
--- a/src/backend/access/hash/hashinsert.c
+++ b/src/backend/access/hash/hashinsert.c
@@ -310,10 +310,8 @@ _hash_pgaddtup(Relation rel, Buffer buf, Size itemsize, IndexTuple itup,
itup_off = _hash_binsearch(page, hashkey);
}
- if (PageAddItem(page, (Item) itup, itemsize, itup_off, false, false)
- == InvalidOffsetNumber)
- elog(ERROR, "failed to add index item to \"%s\"",
- RelationGetRelationName(rel));
+ if (PageAddItem(page, itup, itemsize, itup_off, false, false) == InvalidOffsetNumber)
+ elog(ERROR, "failed to add index item to \"%s\"", RelationGetRelationName(rel));
return itup_off;
}
@@ -352,10 +350,8 @@ _hash_pgaddmultitup(Relation rel, Buffer buf, IndexTuple *itups,
itup_offsets[i] = itup_off;
- if (PageAddItem(page, (Item) itups[i], itemsize, itup_off, false, false)
- == InvalidOffsetNumber)
- elog(ERROR, "failed to add index item to \"%s\"",
- RelationGetRelationName(rel));
+ if (PageAddItem(page, itups[i], itemsize, itup_off, false, false) == InvalidOffsetNumber)
+ elog(ERROR, "failed to add index item to \"%s\"", RelationGetRelationName(rel));
}
}