aboutsummaryrefslogtreecommitdiff
path: root/src/server/shared/Database/Transaction.cpp
AgeCommit message (Collapse)Author
2015-08-21Core/Build: Merge common library and move database out of sharedStormBytePP
2015-04-02Core/Database: Remove va_list from PreparedStatement::PAppend.Naios
(cherry picked from commit 1939367108b50eb1de2bb0a9cc017eea6423cf29)
2015-02-22Shared/Database: Improve dead-lock error handlingjackpoz
Improve dead-lock error handling by making sure only 1 thread at time retries to execute a transaction so they don't keep dead-locking each other. (cherry picked from commit 62001360dd1d08b2f33fba0f20425867b1b0a069)
2015-02-04Shared/Database: Fix transactions not being recommitted on dead-lock errorjackpoz
Fix transactions not being recommitted on dead-lock error (error code 1213) because of calling http://dev.mysql.com/doc/refman/5.0/en/mysql-errno.html after sending the ROLLBACK command. This way the returned error code was related to the ROLLBACK command, not the failed transaction. (cherry picked from commit d4db0c15c7e59f7139619720be3c26a48e6ff259)
2015-01-01Update copyright note for 2015Vincent-Michael
Happy new year
2014-01-01Update copyright note for 2014.Vincent_Michael
Happy new year.
2013-01-01Update copyright note for 2013.Vincent_Michael
Happy new year.
2012-11-27Core/Misc: Set mode 0644 for filesSpp
2012-01-01Update headers for 2012. HAPPY NEW YEAR!!!kiper
2011-06-18Whitespace cleanups...click
2011-05-23Core/DBLayer: Proper core-side handling of MySQL errno 1213 to prevent a ↵Machiavelli
snowballeffect (until innodb_lock_wait_timeout)
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-01Update copyright note for 2011.Machiavelli
Happy new year.
2010-12-23Core: Removed more operator workarounds for ACE_Singleton (missed previously ↵Shauren
because of inconsistent naming) --HG-- branch : trunk
2010-10-07Remove the accidental additions of CRLF-crap from the header updatesclick
--HG-- branch : trunk
2010-10-07Yet more copyright header updatesclick
--HG-- branch : trunk
2010-09-19Core/DBLayer:Machiavelli
- Declare the datatypes used to determine transaction element data (prepared statement/adhoc query string) on a generic level in SQLOperation.h - Implement variable SQL element data for SQLQueryHolder class so it can execute both prepared statements and adhoc queries - Make MySQLConnection::Query for adhoc queries return pointer to type instead of an autopointer, the autopointer is now applied on higher level code just like the function for querying prepared statements --HG-- branch : trunk
2010-09-18Core/DBLayer: Fix a typo. Author: 41782992@qq.comlinencloth
Fixes issue 4071. --HG-- branch : trunk
2010-09-04Core/DBLayer:Machiavelli
- Allow transactions to contain both raw ad-hoc queries and prepared statement elements * When coding on high level code, just make sure you use the right argument type for Transaction::Append and the proper execution will be done automagically --HG-- branch : trunk
2010-09-04Core/DBLayer: Add an assert in TransactionTask::Execute to make sure valid ↵Machiavelli
queries are held Core/Logging: Tiny cleanup in sLog.outSQLDriver --HG-- branch : trunk
2010-08-26Core/Logging:Machiavelli
- Implement sLog.outSQLDriver that will log SQL driver related events (non-content related). - Queries will now be logged into this file as well instead of normal log file (requires debug build). - Don´t forget to update your authserver.conf and worldserver.conf Core/build: - Fix non-PCH build --HG-- branch : trunk
2010-08-21Core: Remove lots warnings:Spp
- All "'xxx' will be initialized after 'yyy' when initialized here" - Some "unused variable" - Some "enumeration value 'xxx' not handled in switch" --HG-- branch : trunk
2010-08-21Core: Make shared build happily without PCH (there are still issues with ↵click
game ++) --HG-- branch : trunk
2010-08-21DB Layer:Machiavelli
- Make SQL Transactions actual objects used in code. (Thanks to Derex for the idea) * Uncommitted transactions will be automatically rolled back and cleaned up using ACE_Refcounted_Auto_Ptr, so no need to call Rollback() in the code. * Prevents recursive transactions and makes developers aware of transactions going on. * Gets rid of unneccesary overhead iterating over a concurrent map. - Some cleanups in affected code, including better usage of transaction control in AH / mail related code to prevent data loss. *** Experimental, use at own risk, recommended to backup your DBs. *** --HG-- branch : trunk