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

Commit2ef5c12

Browse files
committed
Limit depth of forced recursion for CLOBBER_CACHE_RECURSIVELY.
It's somewhat surprising that we got away with this before. (Actually,since nobody tests this routinely AFAIK, it might've been broken forawhile. But it's definitely broken in the wake of commitf868a81.)It seems sufficient to limit the forced recursion to a small numberof levels.Back-patch to all supported branches, like the preceding patch.Discussion:https://postgr.es/m/12259.1532117714@sss.pgh.pa.us
1 parent395f310 commit2ef5c12

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

‎src/backend/utils/cache/inval.c

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,17 @@ AcceptInvalidationMessages(void)
699699
}
700700
}
701701
#elif defined(CLOBBER_CACHE_RECURSIVELY)
702-
InvalidateSystemCaches();
702+
{
703+
staticintrecursion_depth=0;
704+
705+
/* Maximum depth is arbitrary depending on your threshold of pain */
706+
if (recursion_depth<3)
707+
{
708+
recursion_depth++;
709+
InvalidateSystemCaches();
710+
recursion_depth--;
711+
}
712+
}
703713
#endif
704714
}
705715

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp