From: Amit Kapila Date: Mon, 9 Dec 2019 03:09:34 +0000 (+0530) Subject: Fix typos in miscinit.c. X-Git-Tag: REL_10_12~70 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2ab5c03dc16a8ee029d79a5813c9163d4c1b1ace;p=thirdparty%2Fpostgresql.git Fix typos in miscinit.c. Commit f13ea95f9e 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 --- diff --git a/src/backend/utils/init/miscinit.c b/src/backend/utils/init/miscinit.c index 9b2c532023e..8bc4c06b449 100644 --- a/src/backend/utils/init/miscinit.c +++ b/src/backend/utils/init/miscinit.c @@ -727,7 +727,7 @@ GetUserNameFromId(Oid roleid, bool noerr) * ($DATADIR/postmaster.pid) and Unix-socket-file lockfiles ($SOCKFILE.lock). * Both kinds of files contain the same info initially, although we can add * more information to a data-directory lockfile after it's created, using - * AddToDataDirLockFile(). See miscadmin.h for documentation of the contents + * AddToDataDirLockFile(). See pidfile.h for documentation of the contents * of these lockfiles. * * On successful lockfile creation, a proc_exit callback to remove the @@ -997,7 +997,7 @@ CreateLockFile(const char *filename, bool amPostmaster, } /* - * Successfully created the file, now fill it. See comment in miscadmin.h + * Successfully created the file, now fill it. See comment in pidfile.h * about the contents. Note that we write the same first five lines into * both datadir and socket lockfiles; although more stuff may get added to * the datadir lockfile later.