reshke commented on code in PR #1580:
URL: https://github.com/apache/cloudberry/pull/1580#discussion_r2844693641
##########
src/backend/access/appendonly/appendonlyam.c:
##########
@@ -1983,7 +1983,7 @@ appendonly_endscan(TableScanDesc scan)
static pg_attribute_hot_inline bool
appendonly_getnextslot_noqual(AppendOnlyScanDesc aoscan, ScanDirection
direction, TupleTableSlot *slot)
{
- while (appendonlygettup(aoscan, direction, aoscan->rs_base.rs_nkeys,
aoscan->aos_key, slot))
Review Comment:
Sorry, I did not get the actual question.
My point is, there is no point in loop here?
```
while (cond) {
f();
return true;
}
```
isnt this equal to
```
if (cond) {
f();
return true;
}
```
?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]