Skip to content

Commit

Permalink
Move preloaded interconnect to the header file
Browse files Browse the repository at this point in the history
`interconnect` is expected to preload if the macro option
ENABLE_PRELOAD_IC_MODULE is set. The header file
`process_shared_preload_libraries.h` is kept to save all
builtin shared preloaded libraries.

This commit defines the `interconnect` preload in
`process_shared_preload_libraries.h` to minimize code
diverge.
  • Loading branch information
gfphoenix78 authored and my-ship-it committed Mar 13, 2024
1 parent 066b964 commit dcbb652
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
8 changes: 1 addition & 7 deletions src/backend/utils/init/miscinit.c
Original file line number Diff line number Diff line change
Expand Up @@ -1891,7 +1891,7 @@ process_shared_preload_libraries(void)
{
process_shared_preload_libraries_in_progress = true;

char* libraries = expand_shared_preload_libraries_string();
char *libraries = expand_shared_preload_libraries_string();
load_libraries(libraries,
"shared_preload_libraries",
false);
Expand All @@ -1900,12 +1900,6 @@ process_shared_preload_libraries(void)
pfree(libraries);
}

#ifdef ENABLE_PRELOAD_IC_MODULE
load_libraries("interconnect",
"preload interconnect module",
false);
#endif

process_shared_preload_libraries_in_progress = false;
process_shared_preload_libraries_done = true;
}
Expand Down
3 changes: 3 additions & 0 deletions src/include/utils/process_shared_preload_libraries.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#ifdef ENABLE_PRELOAD_IC_MODULE
"interconnect",
#endif

0 comments on commit dcbb652

Please sign in to comment.