if (oldver == 0) {
create_default_admin_account();
}
-
- // Setting this key to nonzero causes the server to regenerate all data that can be derived
- // from other tables: usersbynumber, directory, fulltext.
- // The import utility (ctdlload) sets this key.
- if (CtdlGetConfigInt("regenerate_secondary_indices") != 0) {
- regenerate_secondary_indices();
- }
}
if (oldver < REV_LEVEL) {
syslog(LOG_WARNING, "Running post-startup database upgrades.");
- }
- else {
- return;
- }
-
- if ((oldver > 000) && (oldver < 912)) {
- move_inet_addrs_from_vcards_to_user_records();
- }
- if ((oldver > 000) && (oldver < 922)) {
- ProcessOldStyleAdjRefCountQueue();
- }
-
- if ((oldver > 000) && (oldver < 930)) {
- migrate_inbox_filter_msgnums();
+ if ((oldver > 000) && (oldver < 912)) {
+ move_inet_addrs_from_vcards_to_user_records();
+ }
+
+ if ((oldver > 000) && (oldver < 922)) {
+ ProcessOldStyleAdjRefCountQueue();
+ }
+
+ if ((oldver > 000) && (oldver < 930)) {
+ migrate_inbox_filter_msgnums();
+ }
}
-
}
extern size_t nSizErrmsg;
void initialize_modules (int threading);
void pre_startup_upgrades(void);
+void regenerate_secondary_indices(void);
char *ctdl_module_init_control(void);
char *ctdl_module_init_euidindex(void);
char *ctdl_module_init_msgbase(void);
syslog(LOG_INFO, "main: upgrading modules"); // Run any upgrade entry points
pre_startup_upgrades();
+ // Setting this key to nonzero causes the server to regenerate all data that can be derived
+ // from other tables: usersbynumber, directory, fulltext.
+ // The import utility (ctdlload) sets this key.
+ if (CtdlGetConfigInt("regenerate_secondary_indices") != 0) {
+ regenerate_secondary_indices();
+ }
+
+
// Load the user for the masterCC or create them if they don't exist
if (CtdlGetUser(&masterCC.user, "SYS_Citadel")) {
// User doesn't exist. We can't use create user here as the user number needs to be 0