Shauren
d791afae1d
Core/Logging: Switch from fmt::sprintf to fmt::format (c++20 standard compatible api)
2023-01-08 21:16:53 +01:00
Shauren
301572212f
Core/Misc: Changed string formatting functions to accept std::string_view as format argument instead being templated on it to slightly improve compile times and reduce executable size
2022-09-19 00:33:19 +02:00
Giacomo Pozzoni
51f0294c18
Core/DBLayer: Add QueueSize() method ( #26733 )
...
* Core/DBLayer: Add QueueSize() method
Add QueueSize() method to database objects (Login, Character and World) that returns how many tasks are queued.
Include the queue size of the 3 databases in ".server debug" command
* Make the code less threadsafe
* Send data to InfluxDB
* Update grafana dashboard
(cherry picked from commit 96dc110f4a )
2022-03-11 19:32:22 +01:00
Shauren
357147834e
Core/DBLayer: Fixed memory leaks with existing SQLQueryHolder uses and eliminated the possibilty of adding more in future (replaced manual memory management with smart pointers)
...
(cherry picked from commit 53482f7299 )
2022-02-28 22:41:36 +01:00
Shauren
d5dcf02196
Core/DBLayer: Add nicer api for SQLQueryHolders
...
(cherry picked from commit 9b806c6b5d )
2022-01-24 21:21:37 +01:00
Giacomo Pozzoni
736b9ac112
Log sync db queries in World::Update() loop ( #25174 )
...
* Core/Misc: Log sync queries on critical path
* Fix build
* Rename
* Fix warning
* Fix no-pch
* Change WarnAboutSyncQueries() to be header-only
(cherry picked from commit deceb11b5f )
2022-01-24 14:58:08 +01:00
Shauren
b231903932
Core/Misc: Port all the refactors sneaked in master to 3.3.5 include cleanup port
2020-09-04 13:38:24 +02:00
Shauren
0f0ca3a919
Core/DBLayer: Implement async transaction completion callbacks
2020-04-14 16:23:44 +02:00
Aokromes
b0bf1275ee
New Year
2020-01-02 06:44:10 +01:00
ariel-
d131bd1da0
Core/Database: Prepared statement parameter preallocation ( #18999 )
...
- Pass prepared statement size to the helper class to prevent runtime resizing.
- Rename CheckValidIndex -> AssertValidIndex
- Cached prepared size on the worker pool as it's shared among all connections
- Cached query data only for each connection, done lookup in map instead of possibly creating a new element
- Kill the prepared statement map, and store raw sql string on the MySQLPreparedStatement class
(This info is only used for logging, and there is no need of keeping a second container just for it)
(cherrypicked from affee140c6 )
2019-08-17 20:04:14 +02:00
Shauren
13440434c3
Core/DBLayer: Prevent mixing databases with query holders
2019-07-27 11:45:56 +02:00
Shauren
f6e2b8cdc1
Core/DBLayer: Prevent committing transactions started on a different database
2019-07-27 10:52:33 +02:00
Shauren
e8e89f58fb
Core/DBLayer: Prevent using prepared statements on wrong database
2019-07-27 01:00:37 +02:00
vincent-michael
5620eb9463
Update copyright note for 2019
...
auto happy = new year(2019);
2019-01-01 10:14:33 +01:00
vincent-michael
7d00ae4045
Update copyright note for 2018
...
auto happy = new year(2018);
2018-01-01 00:40:17 +01:00
Shauren
7e538980a2
Core/Database: Include cleanup
2017-05-12 18:50:27 +02:00
Shauren
3a418a0bbc
Core/Common: Include cleanup
2017-05-11 22:29:51 +02:00
Shauren
0314abc26a
Build fix
2017-01-15 12:07:11 +01:00
Shauren
8e2634b2b4
Core/DBLayer: Convert async queries to new query callbacks and remove old callback handling
2017-01-13 21:38:03 +01:00
vincent-michael
86b98686a9
Update copyright note for 2017
...
Happy new year
2017-01-01 16:23:13 +01:00
Naios
be90932eda
Core/Common: Move the query callback header to the database project
...
* Also renames the header to it's correct name QueryCallback
(cherry picked from commit d4d199d765 )
2016-05-10 18:20:52 +02:00
Shauren
67fd3ee726
Core/Misc: Fixed warnings found by GCC 6
2016-04-22 13:45:23 +02:00
Naios
31c8f9a7ed
Core/Database: Move DatabaseWorkerPool into it's own translation unit
...
(cherry picked from commit 09fa0ab46a )
2016-03-03 01:51:49 +01:00
Naios
6a4a65521d
Core/Database: Use RAII instead of raw pointers for resource management
...
* Corrects dirty usage of vectors with array indexes
* Removes _connectionCount which is now handled through the vector size
* Rename magic identifier "t" to "connection"
(cherry picked from commit 5ed0180994 )
2016-03-03 01:27:24 +01:00
Vincent-Michael
478cc756eb
Update copyright note for 2016
...
Happy new year (Again new year with idiots ...)
2016-01-01 00:34:25 +01:00
Shauren
d31706b07e
Core/DBLayer: Improve error message from 0a27f8bce2
2015-11-13 22:43:36 +01:00
Shauren
5604aed5f1
Fix build for mysql versions older than 5.7
2015-11-13 00:01:31 +01:00
Shauren
0a27f8bce2
Core/DBLayer: Ensure that MySQL version used when compiling is the same as libmysql.dll version used for running the server.
...
Ref #15848
2015-11-12 17:54:22 +01:00
StormBytePP
0bed9d56cb
Core: Added ABORT() macro to prevent the usage of ASSERT(false) as a quick hack to crash the core misusing assert
2015-09-21 15:17:05 +02:00
Shauren
7c75160f59
Core/DBLayer: Added compile time validation for prepared statement indexes passed to DatabaseWorkerPool::GetPreparedStatement turning mistakes like the one fixed in 0327927fa6 into compiler errors.
2015-08-27 00:54:49 +02:00
StormBytePP
1d2aafd39b
Core/Build: Merge common library and move database out of shared
2015-08-21 17:52:42 +02:00