aboutsummaryrefslogtreecommitdiff
path: root/src/server/shared
AgeCommit message (Collapse)Author
2011-01-16Core/DBLayer: Fix another possible crash on shutdown. This should be the ↵Machiavelli
last of them caused by this area of the core.
2011-01-15Core/DBLayer: Use default parameters for DatabaseWorker::activate. Fixes a ↵Machiavelli
possible desyncrhonisation issue when DatabaseWorkerPool calls wait() on the workers.
2011-01-13Core/DBLayer: Properly manage mysql library initialization and shutdown in ↵Machiavelli
authserver and worldserver. Prevent multiple calls and make it more elegant.
2011-01-13Core/DBLayer: Properly deallocate SQLOperation objects from ↵Machiavelli
Databaseworkerpool queue.
2011-01-13Core/DBLayer:Machiavelli
- Implement DatabaseWorkerPool::DirectCommitTransaction for synchronous transaction execution (as opposed to asynchronous/enqueued). - Add MySQL errno 1213 "Deadlock found when trying to get lock; try restarting transaction" handler. If 1213 is called the core will retry to directly execute the transaction a maximum of 5 times.
2011-01-11Core: Fix some warningsSpp
2011-01-09Core/DBLayer: CHAR_DEL_AUCTION should be defined as asynchronous. Fixes a ↵Machiavelli
crash caused by assertion failure. ("Could not fetch prepared statement 54 on database `characters`, connection type: asynchronous.")
2011-01-08Remove unintended change from previous rev's copypaste work.Machiavelli
2011-01-08Core/DBLayer: Define prepared statements in an array per database instead of ↵Machiavelli
explicit calls to MySQL::PrepareStatement. Now the core will show the raw query (without bound arguments) in related log entries instead of PreparedStatement id: X on database Y.
2011-01-06Core/DBLayer: Add MySQL errno 1054 to ignored error messages.Machiavelli
2011-01-01Update copyright note for 2011.Machiavelli
Happy new year.
2010-12-27Core/Unit: Big cleanup in Unit::CalcAbsorbResistQAston
Core/AuraScript: Fix compile time check for AuraScript functions Remove AuraApplication from hook functions parameter list, use GetTarget() and GetTargetApplication() instead Add OnEffectAbsorb hook Scripts: move handlers of Spell Deflection, Savage Defense, Primal Tenacity, Nerves of Steel, Astral shift from core to scripts. --HG-- branch : trunk
2010-12-26Core/QuestStatus:linencloth
- Separate rewarded quests from active quests, and store them in a new table to reduce database size - Drop the no longer needed `rewarded` column from character_queststatus for smaller table size - Prevent filling the database with dropped quests - Delete useless records - Implement queststatus save "queues" instead of states - Minor optimizations WARNING: Backup your database! --HG-- branch : trunk
2010-12-24Update some prepared statements to reflect b1759256b5´s changesMachiavelli
--HG-- branch : trunk
2010-12-24Core: Fixed build broken by previous commitShauren
--HG-- branch : trunk extra : rebase_source : 40f72a7b78daedb90351f36de575b3fa7e57fcbf
2010-12-23Core: Removed more operator workarounds for ACE_Singleton (missed previously ↵Shauren
because of inconsistent naming) --HG-- branch : trunk
2010-12-23Core: Adjust precompiled headers: Remove a few already defined/included ↵click
headers in the shared PCH-file (already included from Common.h) --HG-- branch : trunk
2010-12-23Core/DBLayer: Allow asynchronous queries with callbacks to be executed in ↵Machiavelli
prepared statement format as well. + Cleanup and documentation --HG-- branch : trunk
2010-12-23Core/AuthServer: Little more query tuning. Missed by leak.linencloth
--HG-- branch : trunk
2010-12-23Core/AuthServer: Little query tuning. Query by linencloth.leak
--HG-- branch : trunk
2010-12-23Core: Fixed occasional wrong order of async operations at respawn time ↵Xanadu
saving. Closes issue #5239. DB schema: Sorted out a discrepancy in respawn time column format. --HG-- branch : trunk
2010-12-22Memory leak fixedleak
--HG-- branch : trunk
2010-12-22Removing ProgressBars as they are performing badly on startup.leak
[**************************************************] 100% R.I.P --HG-- branch : trunk
2010-12-21Core/AuthServer: Allow reauthentication to the authserver on realm logout. ↵click
Thanks to .. someone (webmaster?) Fixes issue 4191. --HG-- branch : trunk
2010-12-20Core/Auras: Save cast item guids for auras to dbShauren
--HG-- branch : trunk
2010-12-20Core/Buildsystem: Resolved quoting problem that caused gcc to spam warnings. ↵leak
Patch by click. --HG-- branch : trunk
2010-12-19Core/DBLayer: Add MySQL errno´s 1058 and 1062 (related to ↵Machiavelli
query-correctness) to handled errno´s (=doesn´t require further actions from the core) --HG-- branch : trunk
2010-12-19Core/DBLayer: Minor padding/alignment optimization in struct Field::data ↵Machiavelli
(16b->10b) --HG-- branch : trunk
2010-12-19Streamlining loading functions for server startupleak
- Added a couple of timer outputs - Improved code consistency between loading functions - Progess bars should look and behave similar on all OS now (sLog.outString() is not needed anymore to replace the progress bar in log files) --HG-- branch : trunk
2010-12-19Core:DBLayer: Fix warning on GCCclick
--HG-- branch : trunk
2010-12-19Core/DBLayer: Use mysql_set_character_set in MySQLConnection::Open instead ↵Machiavelli
of explicit string queries Also possibly fix an absolutely useless warning on GCC --HG-- branch : trunk
2010-12-19Core/DBLayer:Machiavelli
- Add generic HandleMySQLErrno() method. - Add the ability to re-execute a certain statement if errorhandler resolved the situation succesfuly. - Add support for MySQL errno´s 2006, 2013, 2048, 2055 - fixes automatic reconnection behaviour. - Cleanup in affected code NOTE: You should still be smart enough to configure your worldserver and authserver´s MaxPingTime to be lower than your MySQL´s wait_time. --HG-- branch : trunk
2010-12-18Core/Player: Convert _SaveAuras to prepared statement formatMachiavelli
--HG-- branch : trunk
2010-12-17Core/Player: Change equipmentset saving to use prepared statements.Machiavelli
Update issue #4550 Please try to re-reproduce --HG-- branch : trunk
2010-12-17Core/DBLayer: CharacterDB query CHAR_LOAD_PLAYER_ACTIONS_SPEC should be ↵Machiavelli
synchronous. Fixes a crash introduced in bd30ad7bd3 --HG-- branch : trunk
2010-12-17Core/DBLayer: Add some garbage collection on DatabaseWorkerPool shutdown ↵Machiavelli
(deleting SQLOperation objects) --HG-- branch : trunk
2010-12-17Core/DBLayer: Don´t prepare asynchronous statements on synchronous ↵Machiavelli
connections and vice versa. Prevents allocating RAM that will never be used. --HG-- branch : trunk
2010-12-15DB Schema/Characters: removed columns auctionhouse.item_template, ↵azazel
character_inventory.item_template, guild_bank_item.item_entry and mail_items.item_template and created item_instance.itemEntry column instead of them. As a side effect moved related queries to prepared statements. As one more side effect fixed not shown and lost mail items in returned expired mail (patch by Quriq14). --HG-- branch : trunk
2010-12-14Core/DBLayer: Fix a possible crash in ProcessQueryCallback functions.Machiavelli
Closes issue #5095 --HG-- branch : trunk
2010-12-13Core: Add new system for parallelizing client packet processing. Handle ↵click
WorldSession updates in Map::Update() where we are safe to proceed. Patch by Ambal. (And clean up tabs and whitespace while rummaging around in there) Closes issue 5084. --HG-- branch : trunk
2010-12-13Add missing declarations as of recent mergeMachiavelli
--HG-- branch : trunk
2010-12-13Fix possible compile error under linuxMachiavelli
--HG-- branch : trunk
2010-12-13Fix a typo, thanks to sss.nevanMachiavelli
--HG-- branch : trunk
2010-12-13Core/DBLayer: Implement global ExecuteOrAppend methods to DatabaseWorkerPool ↵Machiavelli
for executing queries in a diverse context (transaction or non transaction) - instead of local to Guild.cpp --HG-- branch : trunk
2010-12-13Fix wrong vsprintf parameter added in merge.Machiavelli
--HG-- branch : trunk
2010-12-13MergeMachiavelli
--HG-- branch : trunk
2010-12-13Backed out changeset: 8326a2411148Machiavelli
--HG-- branch : trunk
2010-12-11Cleanup: implemented helper methods for manipulating percentage calculation ↵azazel
and used it where appropriate (plus fixed some other warnings). NOTE: Initially I just wanted to fix some warnings, but noticed that there is no common method for percentage calculation and various formulas are used many time in the code making it difficult to read and understand what the code actually does. So, I introduced several template methods for calculating percent values and adding those values to the original base. I replaced all the raw calculations throughout the code where found, but I could have missed something or could have made a mistake. So, please report any strange behaviour after this commit. If you ask me why I did it: for the sake of consistency and exact understanding what code means. If you see CalculatePct method, you clearly understand, that it find the value of x percent of y. And you can easily express, for example, spell behviour "reduces smth by x%" by the means of a method instead of recalling school maths. --HG-- branch : trunk
2010-12-10Fix buildclick
--HG-- branch : trunk
2010-12-06Fix linux compile.Machiavelli
Closes issue #5044 --HG-- branch : trunk