mirror of
https://github.com/postgres/postgres.git
synced 2025-11-22 12:22:45 +03:00
Remove superfluous 'pgprocno' field from PGPROC
It was always just the index of the PGPROC entry from the beginning of the proc array. Introduce a macro to compute it from the pointer instead. Reviewed-by: Andres Freund Discussion: https://www.postgresql.org/message-id/8171f1aa-496f-46a6-afc3-c46fe7a9b407@iki.fi
This commit is contained in:
@@ -242,7 +242,7 @@ PgArchiverMain(void)
|
||||
* Advertise our pgprocno so that backends can use our latch to wake us up
|
||||
* while we're sleeping.
|
||||
*/
|
||||
PgArch->pgprocno = MyProc->pgprocno;
|
||||
PgArch->pgprocno = MyProcNumber;
|
||||
|
||||
/* Create workspace for pgarch_readyXlog() */
|
||||
arch_files = palloc(sizeof(struct arch_files_state));
|
||||
|
||||
Reference in New Issue
Block a user