mirror of
https://github.com/postgres/postgres.git
synced 2026-02-20 00:10:16 -05:00
Register llvm_shutdown using on_proc_exit, not before_shmem_exit.
This seems more correct, because other before_shmem_exit calls may expect the infrastructure that is needed to run queries and access the database to be working, and also because this cleanup has nothing to do with shared memory. This is a back-patch ofbab150045b. There were no known user-visible consequences to this, though, apart from what was previous fixed by commit303640199dand back-patched as commitbcbc27251dand commitf7013683d9, sobab150045bwas not no back-patched at the time. Bharath Rupireddy Discussion: http://postgr.es/m/CALj2ACWk7j4F2v2fxxYfrroOF=AdFNPr1WsV+AGtHAFQOqm_pw@mail.gmail.com Backpatch-through: 13, 12
This commit is contained in:
parent
5c11104c7d
commit
2db84c25df
1 changed files with 1 additions and 1 deletions
|
|
@ -921,7 +921,7 @@ llvm_session_initialize(void)
|
|||
}
|
||||
#endif /* LLVM_VERSION_MAJOR > 11 */
|
||||
|
||||
before_shmem_exit(llvm_shutdown, 0);
|
||||
on_proc_exit(llvm_shutdown, 0);
|
||||
|
||||
llvm_session_initialized = true;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue