Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8bd4b89

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 parent611fed3 commit8bd4b89

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
TimestampTzwaitStart;
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)

[8]ページ先頭

©2009-2025 Movatter.jp