Skip to content

Commit 8bd4b89

Browse files
committed
Try to save a kernel call in ResolveRecoveryConflictWithVirtualXIDs.
If there's no work to be done, just exit quickly, before initialization.
1 parent 611fed3 commit 8bd4b89

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/backend/storage/ipc/standby.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,10 @@ ResolveRecoveryConflictWithVirtualXIDs(VirtualTransactionId *waitlist,
193193
TimestampTz waitStart;
194194
char *new_status;
195195

196+
/* Fast exit, to avoid a kernel call if there's no work to be done. */
197+
if (!VirtualTransactionIdIsValid(*waitlist))
198+
return;
199+
196200
waitStart = GetCurrentTimestamp();
197201
new_status = NULL; /* we haven't changed the ps display */
198202

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy