mirror of
https://github.com/postgres/postgres.git
synced 2026-04-21 06:08:26 -04:00
Try to save a kernel call in ResolveRecoveryConflictWithVirtualXIDs.
If there's no work to be done, just exit quickly, before initialization.
This commit is contained in:
parent
611fed3712
commit
8bd4b89e24
1 changed files with 4 additions and 0 deletions
|
|
@ -193,6 +193,10 @@ ResolveRecoveryConflictWithVirtualXIDs(VirtualTransactionId *waitlist,
|
|||
TimestampTz waitStart;
|
||||
char *new_status;
|
||||
|
||||
/* Fast exit, to avoid a kernel call if there's no work to be done. */
|
||||
if (!VirtualTransactionIdIsValid(*waitlist))
|
||||
return;
|
||||
|
||||
waitStart = GetCurrentTimestamp();
|
||||
new_status = NULL; /* we haven't changed the ps display */
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue