Copy-pasto in comment in ExecAppendAsyncReset

Started by Etsuro Fujita21 days ago5 messageshackers
Jump to latest
#1Etsuro Fujita
etsuro.fujita@gmail.com

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

Attachments:

t254534_1
fix-comments.patchapplication/octet-stream; name=fix-comments.patchDownload+1-1
#2Chao Li
li.evan.chao@gmail.com
In reply to: Etsuro Fujita (#1)
Re: Copy-pasto in comment in ExecAppendAsyncReset

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/

#3Etsuro Fujita
etsuro.fujita@gmail.com
In reply to: Chao Li (#2)
Re: Copy-pasto in comment in ExecAppendAsyncReset

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

#4Chao Li
li.evan.chao@gmail.com
In reply to: Etsuro Fujita (#3)
Re: Copy-pasto in comment in ExecAppendAsyncReset

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/

#5Etsuro Fujita
etsuro.fujita@gmail.com
In reply to: Chao Li (#4)
Re: Copy-pasto in comment in ExecAppendAsyncReset

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