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

Commit6a5c750

Browse files
committed
Check ssl_in_use flag when reporting statistics
Previously we checked that the ssl pointer was not null, but this puts arequirement on there being such a pointer which may not be true infuture multi-ssl-library supporting times. This seems to have been anoversight in9029f4b, but hasn't really had any effect since we onlyhave one library.Author: Daniel Gustafsson
1 parent71ec58e commit6a5c750

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/backend/postmaster/pgstat.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2989,7 +2989,7 @@ pgstat_bestart(void)
29892989
MemSet(&lbeentry.st_clientaddr,0,sizeof(lbeentry.st_clientaddr));
29902990

29912991
#ifdefUSE_SSL
2992-
if (MyProcPort&&MyProcPort->ssl!=NULL)
2992+
if (MyProcPort&&MyProcPort->ssl_in_use)
29932993
{
29942994
lbeentry.st_ssl= true;
29952995
lsslstatus.ssl_bits=be_tls_get_cipher_bits(MyProcPort);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp