jcs
/subtext
/amendments
/445
main: Move caching to after logger init
jcs made amendment 445 about 1 year ago
--- main.c Fri Mar 17 15:29:35 2023
+++ main.c Fri Mar 17 21:35:53 2023
@@ -103,11 +103,6 @@ main(void)
logger_init();
logger_update_title();
-
- db_cache_boards(db);
- db_cache_folders(db);
-
- main_menu_init();
zone_size = (unsigned long)CurStackBase - (unsigned long)ApplZone;
stack_size = (unsigned long)CurStackBase - (unsigned long)ApplLimit;
@@ -115,6 +110,11 @@ main(void)
logger_printf("Initialized with %ldKB zone, %ldKB stack for "
"%d threads, %ldKB heap", zone_size / 1024L, stack_size / 1024L,
NUM_UTHREADS, heap_size / 1024L);
+
+ db_cache_boards(db);
+ db_cache_folders(db);
+
+ main_menu_init();
logger_printf("[db] Updating username cache");
user_cache_usernames();