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

Commite65953b

Browse files
committed
Fix C comment typo and redundant test
1 parent6b1a213 commite65953b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

‎src/backend/utils/time/snapmgr.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1659,7 +1659,7 @@ TransactionIdLimitedForOldSnapshots(TransactionId recentXmin,
16591659
* This is not an assertion because we avoid the spinlock for
16601660
* performance, leaving open the possibility that xlimit could advance
16611661
* and be more current; but it seems prudent to apply this limit. It
1662-
* might make pruning a tiny bit lessagressive than it could be, but
1662+
* might make pruning a tiny bit lessaggressive than it could be, but
16631663
* protects against data loss bugs.
16641664
*/
16651665
if (TransactionIdIsNormal(latest_xmin)
@@ -1681,9 +1681,8 @@ MaintainOldSnapshotTimeMapping(int64 whenTaken, TransactionId xmin)
16811681
{
16821682
int64ts;
16831683

1684-
/* Fast exit when old_snapshot_threshold is not used. */
1685-
if (old_snapshot_threshold<0)
1686-
return;
1684+
/* Never call this function when old snapshot checking is disabled. */
1685+
Assert(old_snapshot_threshold >=0);
16871686

16881687
/* Keep track of the latest xmin seen by any process. */
16891688
SpinLockAcquire(&oldSnapshotControl->mutex_latest_xmin);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp