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

Commit72c0b24

Browse files
committed
Improve comment of pgstat_read_statsfile()
The comment at the top of pgstat_read_statsfile() mentioned that thestats are read from the on-disk file into the pgstats dshash. This isincorrect for fix-numbered stats as these are loaded directly intoshared memory. This commit simplifies the comment to be more general.Author: Bertrand DrouvotDiscussion:https://postgr.es/m/Zo/eJIHUcqKxeSgv@ip-10-97-1-34.eu-west-3.compute.internal
1 parent0d8bd0a commit72c0b24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/backend/utils/activity/pgstat.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1495,7 +1495,7 @@ read_chunk(FILE *fpin, void *ptr, size_t len)
14951495
#defineread_chunk_s(fpin,ptr) read_chunk(fpin, ptr, sizeof(*ptr))
14961496

14971497
/*
1498-
* Reads in existing statistics file intothe shared stats hash.
1498+
* Reads in existing statistics file intomemory.
14991499
*
15001500
* This function is called in the only process that is accessing the shared
15011501
* stats so locking is not required.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp