!4118 修复hash索引编译告警

Merge pull request !4118 from 张悦萌/zym-hash-segment
This commit is contained in:
opengauss_bot
2023-09-14 02:40:05 +00:00
committed by Gitee

View File

@ -996,7 +996,7 @@ static bool _hash_alloc_buckets(Relation rel, BlockNumber firstblock, uint32 nbl
if (IsSegmentFileNode(rel->rd_node)) { if (IsSegmentFileNode(rel->rd_node)) {
Buffer buf; Buffer buf;
for (int i = firstblock; i <= lastblock; i++) { for (BlockNumber i = firstblock; i <= lastblock; i++) {
buf = ReadBuffer(rel, P_NEW); buf = ReadBuffer(rel, P_NEW);
ReleaseBuffer(buf); ReleaseBuffer(buf);
} }