Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 2d0fdfa

Browse files
author
Amit Kapila
committed
Fix typos in miscinit.c.
Commit f13ea95 moved the description of postmaster.pid file contents from miscadmin.h to pidfile.h, but missed to update the comments in miscinit.c. Author: Hadi Moshayedi Reviewed-by: Amit Kapila Backpatch-through: 10 Discussion: https://postgr.es/m/CAK=1=WpYEM9x3LGkaxgXaxeYQjnkdW8XLsxrYRTE2Gq-H83FMw@mail.gmail.com
1 parent fd5e16e commit 2d0fdfa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/utils/init/miscinit.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -822,7 +822,7 @@ GetUserNameFromId(Oid roleid, bool noerr)
822822
* ($DATADIR/postmaster.pid) and Unix-socket-file lockfiles ($SOCKFILE.lock).
823823
* Both kinds of files contain the same info initially, although we can add
824824
* more information to a data-directory lockfile after it's created, using
825-
* AddToDataDirLockFile(). See miscadmin.h for documentation of the contents
825+
* AddToDataDirLockFile(). See pidfile.h for documentation of the contents
826826
* of these lockfiles.
827827
*
828828
* On successful lockfile creation, a proc_exit callback to remove the
@@ -1089,7 +1089,7 @@ CreateLockFile(const char *filename, bool amPostmaster,
10891089
}
10901090

10911091
/*
1092-
* Successfully created the file, now fill it. See comment in miscadmin.h
1092+
* Successfully created the file, now fill it. See comment in pidfile.h
10931093
* about the contents. Note that we write the same first five lines into
10941094
* both datadir and socket lockfiles; although more stuff may get added to
10951095
* the datadir lockfile later.

0 commit comments

Comments
 (0)