Improve comment of pgstat_read_statsfile()
The comment at the top of pgstat_read_statsfile() mentioned that the stats are read from the on-disk file into the pgstats dshash. This is incorrect for fix-numbered stats as these are loaded directly into shared memory. This commit simplifies the comment to be more general. Author: Bertrand Drouvot Discussion: https://postgr.es/m/Zo/eJIHUcqKxeSgv@ip-10-97-1-34.eu-west-3.compute.internal
This commit is contained in:
parent
0d8bd0a72e
commit
72c0b24b2d
@ -1495,7 +1495,7 @@ read_chunk(FILE *fpin, void *ptr, size_t len)
|
||||
#define read_chunk_s(fpin, ptr) read_chunk(fpin, ptr, sizeof(*ptr))
|
||||
|
||||
/*
|
||||
* Reads in existing statistics file into the shared stats hash.
|
||||
* Reads in existing statistics file into memory.
|
||||
*
|
||||
* This function is called in the only process that is accessing the shared
|
||||
* stats so locking is not required.
|
||||
|
Loading…
x
Reference in New Issue
Block a user