aboutsummaryrefslogtreecommitdiff
path: root/src/server/shared
AgeCommit message (Collapse)Author
2015-04-05Merge pull request #14491 from doctaweeks/fixes-for-6.xCarbenium
Fixes for 6.x
2015-04-04Misc: Fixed license header formattingShauren
2015-04-02Rename variables to fix C++11 keyword collisionDaniel M. Weeks
2015-04-02Core/Database: Remove va_list from PreparedStatement::PAppend.Naios
(cherry picked from commit 1939367108b50eb1de2bb0a9cc017eea6423cf29)
2015-04-02Core/Database: Remove va_args from DatabaseWorker::Execute methods.Naios
* Also delegate SQLQueryHolder::SetPQuery into SetQuery. (cherry picked from commit df4723af25900b3638a2b5921cf67e1838cbaf64) Conflicts: src/server/shared/Database/QueryHolder.h
2015-03-29Core/Phases: phaseMask remove part 1Rat
2015-03-29Merge branch '6.x' of https://github.com/TrinityCore/TrinityCore into 6.xRat
2015-03-29CMake: Use source_groups to represent the source treeNaios
* It let ide's (like vs) display the source tree. * Disabled by default. * Soft requirement is cmake >= 2.8.12 . * Offers 2 modes: flat & hierarchical. * For detailed description see #14471 * Thanks @click for help and advises. * Closes #14471 (cherry picked from commit c386711972260aa7b877cdc8cb49d24576ce1902) Conflicts: src/server/authserver/CMakeLists.txt
2015-03-29Core/Database: Return an unknown error code instead of false (0) if ↵Naios
mysql_init failed. * Thanks @et65 for noticing. * ref #14139
2015-03-29Core/Database: Fix a mistake in 54ee5267244acac16Naios
* Also use proper errno instead of 0 when reconnecting. * Thanks @et65 for reporting * ref #14139
2015-03-29Merge branch '6.x' of https://github.com/TrinityCore/TrinityCore into 6.xRat
Conflicts: src/server/game/Handlers/MiscHandler.cpp src/server/game/Server/Protocol/Opcodes.cpp
2015-03-28Core/Networking: Fixed unsafe access to _worldSession member in WorldSocketShauren
2015-03-28Core/PacketIO: Implemented CMSG_ENABLE_NAGLEShauren
2015-03-28Core/Log: Improve creation of log prefixes.Naios
* this also fixes non whitespace seperated timestamps in logs after 95ebe4f31cba6b4772cfd19 @Aokromes * remove an unnecessary stringstream in Log::outCommand * delete copy constructor of LogMessage to prevent unwanted copies
2015-03-28Core/Database Improve commit 39bdd06446dcNaios
* found a better way where no cast is needed. * ref #14430
2015-03-27Core/Database: Prepare statements at reconnect.Naios
* Closes #14430
2015-03-24Core/DBUpdater: Use correct formatter for size_tNaios
* thanks @DDuarte pointing this out.
2015-03-24Merge branch '6.x' of https://github.com/TrinityCore/TrinityCore into 6.xRat
Conflicts: src/server/collision/Management/MMapManager.cpp src/server/game/Conditions/ConditionMgr.cpp src/server/game/Conditions/ConditionMgr.h
2015-03-24Core/DBUpdater: Fix some warnings introduced in 966282fbed24a0d0cf8Naios
2015-03-24Core/DBUpdater: Add the possibility to limit the remove of orphaned entries.Naios
* This will save you from loosing your update history if you use a repository in bad state (revision or branch) by mistake. * Also turned 1 error message into a warning
2015-03-22Core/Misc: Warning fixesShauren
2015-03-22Core/DBUpdater: Use correct uint64 to store timestamps.Naios
* Thanks @Shauren for pointing out. * Also removes an invalid argument thanks @jackpoz for noticing.
2015-03-22Core/DBUpdater: Fixed compile errors with boost 1.55 and VS 2013Shauren
2015-03-21Core/Database: Fix some warnings on gccNaios
* warning: when initialized here [-Wreorder] * thanks to @Vincent-Michael
2015-03-21TDB 6.0.1 - 2015/03/21TDB6.01Nayd
Closes #13816 Closes #13792 Ref #14139
2015-03-21Core/Updates: Add an automatic database update system. Automatically detects ↵Naios
new and edited sql updates through file lists and hashing. Detects renames, deletes and is able to create and auto import full databases. * cleanups in main.cpp of world & bnetserver * refactoring in DatabaseWorkerPool.h & MySQLConnection.cpp Make sure you re-run cmake, because boost::iostreams was added as dependency. Maybe you need to install libboost-iostreams1.55-dev on unix as well. Import every update manual until (included) those INSERT IGNORE updates for each database. Thanks DDuarte and Shauren for your amazing ideas, help and advises. In hope that nobody gets a "Your database structure is not up to date..." anymore ,-) Signed-off-by: Naios <naios-dev@live.de> Signed-off-by: Nayd <dnpd.dd@gmail.com>
2015-03-18Core/Log: Readd include of <stdarg.h> to fix compile issues under gccNaios
2015-03-18Core: WARN instead of INFO - this is actually something we'd want to be ↵click
informed of... (cherry picked from commit d5718f337257cfa2a4562df1aeb79a0ff0324add)
2015-03-18Merge pull request #14317 from Naios/typesafelogCarbenium
Type safe logging
2015-03-18Shared/Logs: Add support to .server set loglevel command after ↵jackpoz
003d67708b9a279da3d37e5ef06eb32ceab53964 Update the lowest log level when using ".server set loglevel" command. (cherry picked from commit 43f74fd8cfbab8f8fecf128e5d8d5d44ae767988)
2015-03-18Shared/Logs: Improve log performancesjackpoz
Improve Log::ShouldLog() performances by saving the lowest log level across all loggers and discarding any log with lower level than that. (cherry picked from commit 003d67708b9a279da3d37e5ef06eb32ceab53964)
2015-03-18Core/CrashHandler: Fix char[] without '\0' handlingjackpoz
Fix char[] without a NULL character '\0' in the array reading over the char[] bounds (cherry picked from commit fd844e3d7e18212d6e8dd6531eac1f198527926b)
2015-03-16Core/Phases: Ported new phasing system from 4.3.4 branch and fixed some map ↵Rat
swap logic
2015-03-13Core/Log: Add type safe formattingNaios
* improves safety and log speed through: - variadic templates - perfect forwarding * fixes a newline in db logs * improve performance of Appender::write by using std::ostringstream && std::move
2015-03-11Core/Log: Fix some issues detected by static analysis.Naios
* Either inefficient or wrong usage of string::find(). string::compare() will be faster if string::find's result is compared with 0, because it will not scan the whole string. If your intention is to check that there are no findings in the string, you should compare with std::string::npos. * C-style pointer casting detected. C++ offers four different kinds of casts as replacements: static_cast, const_cast, dynamic_cast and reinterpret_cast.
2015-03-10Core/Support: Update the support/ticket system to 6.xCarbenium
Core/Mail: fix a logic error introduced in 829e11b6623f967672143d79cd8d31772f54866d
2015-03-09CMake: Remove unused source referenceleak
2015-03-08Core/Misc: Cleaned up data truncation warningsShauren
2015-03-08Core/Spells: Implemented multiple spell power costsShauren
2015-03-06Core/DataStores: Added an extra safeguard for loading db2 hotfix locale ↵Shauren
tables - invalid row will no longer cause crashes
2015-03-06Core/Player: fixed some leftovers in db after player deletejoschiwald
* character_arena_stats * character_battleground_random * character_cuf_profiles * character_currency * character_stats * character_void_storage
2015-03-04Core/Crypto: Fixed output of BigNumber::AsByteArray when generated array is ↵Shauren
shorter than requested size (cherry picked from commit e52b46abba9250c611312a891fda0adaccce0f0c)
2015-03-04Core/DataStores: Updated dbc structures to 6.1Shauren
2015-03-04Core/DataStores: Made prepared statement index argument for DB2Storage ↵Shauren
constructor required
2015-02-25Core/DataStores: Fixed out of bounds array access in DBStorageIteratorShauren
2015-02-24Core/PacketIO: Removed timezone adjustments from ReadPackedTime - player's ↵Shauren
session timezone offset should be used there, not server offset
2015-02-22DB: Dropped unused tablesShauren
2015-02-22Core/DataStores: Added iterator class for DBCStorage and DB2StorageShauren
2015-02-22Core/DataStores: Added tables for all loaded DB2 storesShauren
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)