Copy-pasto in comment in ExecAppendAsyncReset
Hi,
While working on the Asynchronous-MergeAppend patch, I noticed
$SUBJECT: "Wait or poll for async events." for the call to
ExecAppendAsyncEventWait. We call it with node->as_syncdone=true,
which makes it wait until at least one event occurs, as commented
above, so it never polls. Attached is a small patch for fixing that
comment.
Best regards,
Etsuro Fujita
On Nov 3, 2026, at 10:26, Etsuro Fujita <etsuro.fujita@gmail.com> wrote:
Hi,
While working on the Asynchronous-MergeAppend patch, I noticed
$SUBJECT: "Wait or poll for async events." for the call to
ExecAppendAsyncEventWait. We call it with node->as_syncdone=true,
which makes it wait until at least one event occurs, as commented
above, so it never polls. Attached is a small patch for fixing that
comment.Best regards,
Etsuro Fujita
<fix-comments.patch>
The fix looks good to me.
Should we also update the header comment of ExecAppendAsyncEventWait since it only says “wait or poll” without explaining when to wait and when to poll? Something like:
```
/*
* ExecAppendAsyncEventWait
*
* Wait or poll for file descriptor events and fire callbacks.
* If as_syncdone is true, wait until at least one event occurs;
* otherwise, poll without waiting so synchronous execution can proceed.
*/
```
Best regards,
--
Chao Li (Evan)
HighGo Software Co., Ltd.
https://www.highgo.com/
On Tue, Nov 3, 2026 at 11:51 AM Chao Li <li.evan.chao@gmail.com> wrote:
<fix-comments.patch>
The fix looks good to me.
Should we also update the header comment of ExecAppendAsyncEventWait since it only says “wait or poll” without explaining when to wait and when to poll? Something like:
```
/*
* ExecAppendAsyncEventWait
*
* Wait or poll for file descriptor events and fire callbacks.
* If as_syncdone is true, wait until at least one event occurs;
* otherwise, poll without waiting so synchronous execution can proceed.
*/
```
That would be an improvement rather than a fix, so I'd like to leave
it for another (master-only) patch.
Thanks for looking!
Best regards,
Etsuro Fujita
On Nov 3, 2026, at 21:31, Etsuro Fujita <etsuro.fujita@gmail.com> wrote:
On Tue, Nov 3, 2026 at 11:51 AM Chao Li <li.evan.chao@gmail.com> wrote:
<fix-comments.patch>
The fix looks good to me.
Should we also update the header comment of ExecAppendAsyncEventWait since it only says “wait or poll” without explaining when to wait and when to poll? Something like:
```
/*
* ExecAppendAsyncEventWait
*
* Wait or poll for file descriptor events and fire callbacks.
* If as_syncdone is true, wait until at least one event occurs;
* otherwise, poll without waiting so synchronous execution can proceed.
*/
```That would be an improvement rather than a fix, so I'd like to leave
it for another (master-only) patch.
No problem. Would you follow up a patch? Or you’d let me propose one?
Best regards,
--
Chao Li (Evan)
HighGo Software Co., Ltd.
https://www.highgo.com/
On Wed, Nov 4, 2026 at 7:21 AM Chao Li <li.evan.chao@gmail.com> wrote:
On Nov 3, 2026, at 21:31, Etsuro Fujita <etsuro.fujita@gmail.com> wrote:
On Tue, Nov 3, 2026 at 11:51 AM Chao Li <li.evan.chao@gmail.com> wrote:Should we also update the header comment of ExecAppendAsyncEventWait since it only says “wait or poll” without explaining when to wait and when to poll? Something like:
```
/*
* ExecAppendAsyncEventWait
*
* Wait or poll for file descriptor events and fire callbacks.
* If as_syncdone is true, wait until at least one event occurs;
* otherwise, poll without waiting so synchronous execution can proceed.
*/
That would be an improvement rather than a fix, so I'd like to leave
it for another (master-only) patch.
No problem. Would you follow up a patch? Or you’d let me propose one?
Thanks, I've pushed and backpatched the patch. It would be great if
you proposed that one.
Best regards,
Etsuro Fujita