diff options
| -rw-r--r-- | src/backend/storage/ipc/aio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/storage/ipc/aio.c b/src/backend/storage/ipc/aio.c index 699158b88b..4fc712c424 100644 --- a/src/backend/storage/ipc/aio.c +++ b/src/backend/storage/ipc/aio.c @@ -1241,7 +1241,7 @@ pgaio_drain(PgAioContext *context, bool in_error) /* * Call all pending local callbacks. */ - if (my_aio->local_completed_count != 0) + if (my_aio->local_completed_count != 0 && CritSectionCount == 0) { static int recursion_count = 0; |
