Bug #8937: Extension setup functions not called on server resets

(cherry picked from 5e946dd853 commit)
This commit is contained in:
Eamon Walsh 2006-11-07 13:55:04 -05:00 committed by Eamon Walsh
parent e6778fee47
commit c9ff47033e

View file

@ -754,6 +754,16 @@ InitExtensions(argc, argv)
/* Sort the extensions according the init dependencies. */
LoaderSortExtensions();
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++) {