Skip to content

Commit 2ab5c03

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 6909742 commit 2ab5c03

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/utils/init/miscinit.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,7 @@ GetUserNameFromId(Oid roleid, bool noerr)
727727
* ($DATADIR/postmaster.pid) and Unix-socket-file lockfiles ($SOCKFILE.lock).
728728
* Both kinds of files contain the same info initially, although we can add
729729
* more information to a data-directory lockfile after it's created, using
730-
* AddToDataDirLockFile(). See miscadmin.h for documentation of the contents
730+
* AddToDataDirLockFile(). See pidfile.h for documentation of the contents
731731
* of these lockfiles.
732732
*
733733
* On successful lockfile creation, a proc_exit callback to remove the
@@ -997,7 +997,7 @@ CreateLockFile(const char *filename, bool amPostmaster,
997997
}
998998

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

0 commit comments

Comments
 (0)