aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/init/postinit.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/utils/init/postinit.c')
-rw-r--r--src/backend/utils/init/postinit.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/backend/utils/init/postinit.c b/src/backend/utils/init/postinit.c
index 6b9082604fb..a5c208a20a8 100644
--- a/src/backend/utils/init/postinit.c
+++ b/src/backend/utils/init/postinit.c
@@ -1231,24 +1231,6 @@ ShutdownPostgres(int code, Datum arg)
* them explicitly.
*/
LockReleaseAll(USER_LOCKMETHOD, true);
-
- /*
- * temp debugging aid to analyze 019_replslot_limit failures
- *
- * If an error were thrown outside of a transaction nothing up to now
- * would have released lwlocks. We probably will add an
- * LWLockReleaseAll(). But for now make it easier to understand such cases
- * by warning if any lwlocks are held.
- */
-#ifdef USE_ASSERT_CHECKING
- {
- int held_lwlocks = LWLockHeldCount();
-
- if (held_lwlocks)
- elog(WARNING, "holding %d lwlocks at the end of ShutdownPostgres()",
- held_lwlocks);
- }
-#endif
}