Commit Graph
1556 Commits
Author SHA1 Message Date
Shauren 5ac0b7844c Core/PacketIO: Implemented CMSG_ENABLE_NAGLE 2015-03-28 20:51:01 +01:00
Naios a2e280c8a8 Core/Log: Improve creation of log prefixes.
* this also fixes non whitespace seperated timestamps in logs after 95ebe4f31c @Aokromes
* remove an unnecessary stringstream in Log::outCommand
* delete copy constructor of LogMessage to prevent unwanted copies
2015-03-28 17:12:24 +01:00
Naios 54ee526724 Core/Database Improve commit 39bdd06446
* found a better way where no cast is needed.
* ref #14430
2015-03-28 17:12:02 +01:00
Naios 39bdd06446 Core/Database: Prepare statements at reconnect.
* Closes #14430
2015-03-27 15:34:13 +01:00
Naios b2b8de5786 Core/DBUpdater: Use correct formatter for size_t
* thanks @DDuarte pointing this out.
2015-03-24 22:00:19 +01:00
Rat eebc468e62 Merge branch '6.x' of https://github.com/TrinityCore/TrinityCore into 6.x
Conflicts:
	src/server/collision/Management/MMapManager.cpp
	src/server/game/Conditions/ConditionMgr.cpp
	src/server/game/Conditions/ConditionMgr.h
2015-03-24 20:01:02 +01:00
Naios 3ad7776d50 Core/DBUpdater: Fix some warnings introduced in 966282fbed 2015-03-24 12:55:45 +01:00
Naios 966282fbed Core/DBUpdater: Add the possibility to limit the remove of orphaned entries.
* 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-24 12:31:52 +01:00
Shauren cc4d79495f Core/Misc: Warning fixes 2015-03-22 13:47:55 +01:00
Naios 8e48ef7863 Core/DBUpdater: Use correct uint64 to store timestamps.
* Thanks @Shauren for pointing out.
* Also removes an invalid argument thanks @jackpoz for noticing.
2015-03-22 01:28:50 +01:00
Shauren 495af75b7e Core/DBUpdater: Fixed compile errors with boost 1.55 and VS 2013 2015-03-22 00:14:54 +01:00
Naios cff3910ec8 Core/Database: Fix some warnings on gcc
* warning: when initialized here [-Wreorder]
* thanks to @Vincent-Michael
2015-03-21 21:07:20 +01:00
Nayd 5be0cf7120 TDB 6.0.1 - 2015/03/21
Closes #13816
Closes #13792

Ref #14139
2015-03-21 17:09:25 +00:00
Naios 352012e531 Core/Updates: Add an automatic database update system. Automatically detects 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 <[email protected]>
Signed-off-by: Nayd <[email protected]>
2015-03-21 14:09:38 +00:00
Naios d64e6ffade Core/Log: Readd include of <stdarg.h> to fix compile issues under gcc 2015-03-18 15:29:56 +01:00
click be078fd8a9 Core: WARN instead of INFO - this is actually something we'd want to be informed of...
(cherry picked from commit d5718f337257cfa2a4562df1aeb79a0ff0324add)
2015-03-18 00:33:20 +00:00
Carbenium cc0c9add5a Merge pull request #14317 from Naios/typesafelog
Type safe logging
2015-03-18 01:25:38 +01:00
jackpoz 22d655451c Shared/Logs: Add support to .server set loglevel command after 003d67708b9a279da3d37e5ef06eb32ceab53964
Update the lowest log level when using ".server set loglevel" command.

(cherry picked from commit 43f74fd8cfbab8f8fecf128e5d8d5d44ae767988)
2015-03-18 00:10:19 +00:00
jackpoz 064b6a4c84 Shared/Logs: Improve log performances
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-18 00:10:02 +00:00
jackpoz 1a583703c5 Core/CrashHandler: Fix char[] without '\0' handling
Fix char[] without a NULL character '\0' in the array reading over the char[] bounds

(cherry picked from commit fd844e3d7e18212d6e8dd6531eac1f198527926b)
2015-03-18 00:08:49 +00:00
Rat 8f3a80c1cf Core/Phases: Ported new phasing system from 4.3.4 branch and fixed some map swap logic 2015-03-16 07:28:49 +01:00
Naios 95ebe4f31c Core/Log: Add type safe formatting
* 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-13 09:15:42 +01:00
Naios 8882a6ca78 Core/Log: Fix some issues detected by static analysis.
* 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-11 08:20:12 +01:00
Carbenium 37a14bc2d5 Core/Support: Update the support/ticket system to 6.x
Core/Mail: fix a logic error introduced in 829e11b662
2015-03-10 21:09:21 +01:00
leak c61548a17b CMake: Remove unused source reference 2015-03-09 14:55:20 +01:00
Shauren e15ba34444 Core/Misc: Cleaned up data truncation warnings 2015-03-08 22:04:34 +01:00
Shauren 0ba2e0d5ee Core/Spells: Implemented multiple spell power costs 2015-03-08 13:31:57 +01:00
Shauren 854917a31a Core/DataStores: Added an extra safeguard for loading db2 hotfix locale tables - invalid row will no longer cause crashes 2015-03-06 18:52:58 +01:00
joschiwald 2955a1f595 Core/Player: fixed some leftovers in db after player delete
* character_arena_stats
* character_battleground_random
* character_cuf_profiles
* character_currency
* character_stats
* character_void_storage
2015-03-06 03:52:05 +01:00
Shauren 5e860daa22 Core/Crypto: Fixed output of BigNumber::AsByteArray when generated array is shorter than requested size
(cherry picked from commit e52b46abba9250c611312a891fda0adaccce0f0c)
2015-03-04 12:22:10 +01:00
Shauren e63872e1ee Core/DataStores: Updated dbc structures to 6.1 2015-03-04 12:17:06 +01:00
Shauren 0652b1072a Core/DataStores: Made prepared statement index argument for DB2Storage constructor required 2015-03-04 12:15:38 +01:00
Shauren 4282ec57f3 Core/DataStores: Fixed out of bounds array access in DBStorageIterator 2015-02-25 16:13:58 +01:00
Shauren aa3b05c312 Core/PacketIO: Removed timezone adjustments from ReadPackedTime - player's session timezone offset should be used there, not server offset 2015-02-24 01:14:23 +01:00
Shauren 9fa57479ca DB: Dropped unused tables 2015-02-22 12:44:44 +01:00
Shauren 40b6736f69 Core/DataStores: Added iterator class for DBCStorage and DB2Storage 2015-02-22 12:44:24 +01:00
Shauren 5c4fd7ac4f Core/DataStores: Added tables for all loaded DB2 stores 2015-02-22 10:29:12 +01:00
jackpoz e36fb12359 Shared/Database: Improve dead-lock error handling
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-22 06:21:13 +00:00
Shauren 56186319bd Core/Spells: Cooldown updates
* Refactored cooldown handling to separate class shared by creatures and players
* Updated and enabled cooldown packets
* Implemented creature school lockouts
* Implemented spell charges
* Fixed AuraUpdate structure
* Fixed aura flag AFLAG_NOCASTER handling
* Implemented spell charge related auras
2015-02-17 01:01:44 +01:00
Mogadischu bc0c0ae2a3 Core/Guild: Updated and enabled most previously implemented guild and petition related packets
Merged from https://github.com/Mogadischu/TrinityCore/commits/guild

Signed-off-by: Duarte Duarte <[email protected]>
2015-02-13 18:32:36 +00:00
joschiwald bbce7d0342 Core/Items: fixed AuctionHouse and GuildBank items from DB 2015-02-08 20:02:04 +01:00
joschiwald e01bb91887 Core/Packets: updated some contactlist packets 2015-02-08 02:51:49 +01:00
Carbenium 829e11b662 Core/Packets: Implement all mail system relevant packets
Thanks @joschiwald, @DDuarte and @Warpten
2015-02-07 12:43:25 +01:00
Noffearr 1d894f1b9d Core/Misc: Update outdated license header files
Ref #14028
2015-02-04 21:02:54 +00:00
Nayd 19a09c2763 Fix build
(cherry picked from commit c66bd709f1c58303aca39b8f43ac57379079882d)
2015-02-04 19:44:56 +00:00
jackpoz 7c3a2e163a Shared/Database: Fix transactions not being recommitted on dead-lock error
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-02-04 19:20:39 +00:00
Shauren dd4973ab23 Core/PacketIO: Fixed SMSG_DB_REPLY structure 2015-02-02 19:50:27 +01:00
jackpoz 95b1204798 Core/Misc: Properly sanitize ReputationSpillover data
Fix an issue added in 024b57bb74 that didn't properly skip ReputationSpillover rows with invalid data.
Fix also a static analysis issue reported by Coverity.
2015-01-31 22:59:21 +01:00
jackpoz 89c535cf2a Core/Misc: Fix static analysis issues
Fix some static analysis issues reported by Coverity
2015-01-30 22:32:26 +01:00
jackpoz 0edc35b921 Core/Misc: Fix static analysis issues
Fix some static analysis issues reported by Coverity
2015-01-20 22:55:06 +01:00