aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/Commands
diff options
context:
space:
mode:
authorGiacomo Pozzoni <giacomopoz@gmail.com>2021-07-24 14:50:30 +0200
committerGitHub <noreply@github.com>2021-07-24 14:50:30 +0200
commit96dc110f4a353871ac74c82ff4b1bcc4c34156f3 (patch)
tree076c45e0c291256a0d9e2ecbf7c8d989c5431470 /src/server/scripts/Commands
parent48f63eda9029d4fe16b7a350059c8e26ba8484ce (diff)
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
Diffstat (limited to 'src/server/scripts/Commands')
-rw-r--r--src/server/scripts/Commands/cs_server.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/server/scripts/Commands/cs_server.cpp b/src/server/scripts/Commands/cs_server.cpp
index a0c1e3da41b..c32662b992a 100644
--- a/src/server/scripts/Commands/cs_server.cpp
+++ b/src/server/scripts/Commands/cs_server.cpp
@@ -251,6 +251,10 @@ public:
handler->PSendSysMessage("Using %s DBC Locale as default. All available DBC locales: %s", localeNames[defaultLocale], availableLocales.c_str());
handler->PSendSysMessage("Using World DB: %s", sWorld->GetDBVersion());
+
+ handler->PSendSysMessage("LoginDatabase queue size: %zu", LoginDatabase.QueueSize());
+ handler->PSendSysMessage("CharacterDatabase queue size: %zu", CharacterDatabase.QueueSize());
+ handler->PSendSysMessage("WorldDatabase queue size: %zu", WorldDatabase.QueueSize());
return true;
}