Commit graph

31 commits

Author SHA1 Message Date
Ambal
07c9f0cbb8 [11054] Do not allow async transaction execution while server is loading. Call Database::InitDelayThread() function explicitly to create async DB worker thread after server initialization is complete.
Signed-off-by: Ambal <pogrebniak@gala.net>
2011-01-20 23:46:51 +02:00
Ambal
631ce36680 [11045] Rewrite internals of DB layer. Simplify code and use less locking. Spawn and use separate connections for sync and async DB requests. Implement database connection pool for SELECT queries. Up to maximum 16 connections supported. Disable 'autocommit' mode for MySQL.
UPDATE YOUR CONFIGS!

Defaults:
LoginDatabaseConnections = 1
WorldDatabaseConnections = 1
CharacterDatabaseConnections = 1

If you are not using <mtmaps> patch do not change the default settings - this is useless. You can try following option in your MySQL config to squeeze even more performance from your DB:

[mysqld]
transaction-isolation = READ-COMMITTED

Great thanks to Undergarun, kero99 and selector for making tests and providing very useful feedback and DB statistics! Have fun :)

Signed-off-by: Ambal <pogrebniak@gala.net>
2011-01-19 22:05:20 +02:00
VladimirMangos
bf0ecf6e71 [10947] Update copyright notice for 2011 year. 2011-01-01 20:33:43 +03:00
VladimirMangos
15e6c17158 [10583] Remove dual ERROR in logs 2010-10-07 01:59:07 +04:00
Grinder
f244e68c59 [10102] Rename loginDatabase for consistence with other global db object names
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-06-24 02:55:26 +04:00
Astellar
78400f8406 [10091] Use ACE for command line options parse.
Note: "--service run" renamed to "-s run"
in consistence with other serrvice options.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-06-21 06:40:10 +04:00
VladimirMangos
1eed65d5ac [10082] Drop now unused dotconfpp lib code. 2010-06-20 02:20:51 +04:00
Derex
b23fd66aa6 [10009] Fix realmd to accept more than 64 connections on windows.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-05-31 03:21:42 +04:00
VladimirMangos
4f4bf7f45d [9942] Output ACE version at realmd start. 2010-05-21 01:26:28 +04:00
Derex
8a1fd9e086 [9935] ACE realmd, thanks to Zor and Vladimir for windows. 2010-05-19 23:37:35 +03:00
VladimirMangos
aaa33d5385 [9904] Add new config option for wait mode at startup error.
Note: it not applied to crashes and shutdowns after mangosd/relamd startup completed.
You can continue without delay (as now) and fast exist, or wait <Enter>, or some secs
for continue. Last can be helpful for see for example not applied sql update revision
data and etc.
2010-05-16 02:19:40 +04:00
VladimirMangos
722135b326 [9838] More log filters and macro uses.
* LogFilter_Weather
* LogFilter_PeriodicAffects
* LogFilter_PlayerMoves
* LogFilter_SQLText
* LogFilter_AIAndMovegens
* LogFilter_PlayerStats
2010-05-05 18:46:10 +04:00
VladimirMangos
fe6e2e1746 [9122] Updated copyright notice for new year.
Also fix some lost in past cases.
2010-01-08 00:02:21 +03:00
XTZGZoReX
9ccf3ffc0f [8839] Correct "outdated OpenSSL" warning message. 2009-11-19 12:43:37 +01:00
VladimirMangos
bc5fb40867 [8825] At fail start db connections stop all started db connection threads.
This will restore state before start Db function call and prevent crashes
at delayed access to log singleton in case outdated DB structure detection.
2009-11-17 12:42:45 +03:00
balrok
fbe9241a96 [8823] removed ban-cleanup queries from realmd at login
now they just getting executed when realmd is started

i think this will improve speed a bit.. cause we don't need to cleanup those
bans so often we just can check the conditions inside the select
2009-11-15 20:38:23 +01:00
XTZGZoReX
b3f3ffa885 [8793] Don't do operations through singleton if already in singleton context.
* Also, some minor things:
   - Remove duplicate sWorldLog define.
   - Add sRealmList macro for RealmList::Instance().
   - Use sLog macro in scripting log functions.
2009-11-08 19:32:59 +01:00
XTZGZoReX
6abf7e7f58 Make RealmList proper singleton in realmd. 2009-11-08 03:54:27 +01:00
XTZGZoReX
aff1a3e59f [8645] Cleanup code for config loading/store/access.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-10-14 20:48:16 +04:00
arrai
3b1b68595b [8445] Fixed redundant calculation of v and s on every login
The SRP-6 specifications clearly say, that v and s are only to be
calculated on registering a user and changing his password; calculating
them on every login is plain waste.
2009-09-01 02:42:50 +02:00
VladimirMangos
8a7b77c088 [8441] Implement check DBs versions (required_* fields) at mangosd/realmd loading.
* git_id updated to generate revision_sql.h file with required_* fields strings.
* mangosd/realmd changed to include header and check this strings at startup.
* mangosd/realmd will terminated if related strings not match in DB content.
  In most cases this meaning that not all expected sql updates applied.
  Current required_* field stored in DB output in error to help find what last sql updates applied.

IMPORTNAT NOTE for mangos devs: please update used git_id before adding next commits with sql updates!
2009-08-30 15:02:10 +04:00
XTZGZoReX
9166cd9ef3 [7940] Print only warnings on SSLeay check.
Signed-off-by: AlexDereka <dereka.alex@gmail.com>
2009-06-01 15:52:37 +04:00
AlexDereka
dacdf4e60f [7937] Check OpenSSL lib at server start up. 2009-06-01 11:43:04 +04:00
VladimirMangos
3beec18f4e [7873] Use same name for realmd DB connection in realmd code as used in mangosd/game. 2009-05-22 16:27:46 +04:00
arrai
c6f48843ad [7017] Updated copyright notice for new year 2009-01-03 18:09:51 +01:00
VladimirMangos
a62bee6d66 [6823] Restore colored console output. 2008-11-14 19:24:56 +03:00
VladimirMangos
2bf6345beb [6822] Implement --version option for mangosd/realmd for output current binary version and exit. 2008-11-14 11:19:04 +03:00
VladimirMangos
85c6e30bed [6802] Fixed build of realmd (absent macro arg) after recent git_id adding. 2008-11-08 04:16:45 +03:00
VladimirMangos
643f6af8c7 Rename gensvnrevision and related files and references to genrevision/etc.
Also svn_revision.h renmaed to revision.h and defines in to it also renamed. MaNGOS code updated.
Other projects using this genrevison tool need to be updated in similar way.
2008-10-25 15:35:25 +04:00
VladimirMangos
0874856e34 Implement git support in gensvnrevision tool and related changes in code.
gvnrevision still support svn version generation and have addition options now (see sources).
gensvnrevision/svn_revision.h and other svn reference will fixed later.
Now version strings include commit date/time that can be used in git case for fast find git commit without using git hash most time.
In chat ".server info" output git hash can be copied by shift-click in chat and then copied to cliboard if need.
2008-10-25 14:34:47 +04:00
TheLuda
800ee76535 Imported MaNGOS revision 6767 from http://mangos.svn.sourceforge.net/svnroot/mangos/trunk/ 2008-10-14 00:29:20 +02:00