Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9dad24b

Browse files
Maksim MilyutinSergey Shinderuk
Maksim Milyutin
authored and
Sergey Shinderuk
committed
Add missing PGDLLEXPORT markings for collector_main function
After commit 089480c07, it's necessary for background worker entry points to be marked PGDLLEXPORT, else they aren't findable by LookupBackgroundWorkerFunction().
1 parent a2051cd commit 9dad24b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pg_wait_sampling.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ extern void init_lock_tag(LOCKTAG *tag, uint32 lock);
8181
/* collector.c */
8282
extern void register_wait_collector(void);
8383
extern void alloc_history(History *, int);
84-
extern void collector_main(Datum main_arg);
84+
extern PGDLLEXPORT void collector_main(Datum main_arg);
8585

8686
extern void shm_mq_detach_compat(shm_mq_handle *mqh, shm_mq *mq);
8787
extern shm_mq_result shm_mq_send_compat(shm_mq_handle *mqh, Size nbytes,

0 commit comments

Comments
 (0)