瀏覽代碼

Moved log_sql_init() call up in map-server-init to after after map_sql_init() call to prevent unnecessary processing before a potential quit.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14172 54d463be-8e91-2dee-dedb-b68131a5f0ec
Paradox924X 15 年之前
父節點
當前提交
0c828bfc57
共有 2 個文件被更改,包括 4 次插入4 次删除
  1. 2 0
      Changelog-Trunk.txt
  2. 2 4
      src/map/map.c

+ 2 - 0
Changelog-Trunk.txt

@@ -3,6 +3,8 @@ Date	Added
 AS OF SVN REV. 5091, WE ARE NOW USING TRUNK.  ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK.
 IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
 
+2009/11/26
+	* Moved log_sql_init() call up in map-server-init to after after map_sql_init() call to prevent unnecessary processing before a potential quit. [Paradox924X]
 2009/11/25
 	* Fixed strnpcinfo(1) returning blank strings when NPC names did not have a hidden portion of the display name. (bugreport:3758) [Paradox924X]
 2009/11/23

+ 2 - 4
src/map/map.c

@@ -3595,6 +3595,8 @@ int do_init(int argc, char *argv[])
 
 #ifndef TXT_ONLY
 	map_sql_init();
+	if (log_config.sql_logs)
+		log_sql_init();
 #endif /* not TXT_ONLY */
 
 	mapindex_init();
@@ -3629,10 +3631,6 @@ int do_init(int argc, char *argv[])
 	do_init_npc();
 	do_init_unit();
 	do_init_battleground();
-#ifndef TXT_ONLY /* mail system [Valaris] */
-	if (log_config.sql_logs)
-		log_sql_init();
-#endif /* not TXT_ONLY */
 
 	npc_event_do_oninit();	// npc‚ÌOnInitƒCƒxƒ“ƒg?�s