Bug #8937: Extension setup functions not called on server resets
This commit is contained in:
parent
3d39c02fe6
commit
5e946dd853
|
@ -754,6 +754,16 @@ InitExtensions(argc, argv)
|
||||||
/* Sort the extensions according the init dependencies. */
|
/* Sort the extensions according the init dependencies. */
|
||||||
LoaderSortExtensions();
|
LoaderSortExtensions();
|
||||||
listInitialised = TRUE;
|
listInitialised = TRUE;
|
||||||
|
} else {
|
||||||
|
/* Call the setup functions on subsequent server resets as well */
|
||||||
|
for (i = 0; ExtensionModuleList[i].name != NULL; i++) {
|
||||||
|
ext = &ExtensionModuleList[i];
|
||||||
|
if (ext->setupFunc != NULL &&
|
||||||
|
(ext->disablePtr == NULL ||
|
||||||
|
(ext->disablePtr != NULL && !*ext->disablePtr))) {
|
||||||
|
(ext->setupFunc)();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; ExtensionModuleList[i].name != NULL; i++) {
|
for (i = 0; ExtensionModuleList[i].name != NULL; i++) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user