Created
June 9, 2025 14:27
-
-
Save Shauren/57a7165ba29d199feee6f441cdf1e9b8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/src/server/database/Database/DatabaseWorkerPool.cpp b/src/server/database/Database/DatabaseWorkerPool.cpp | |
| index dca4ade225..3ccedb9831 100644 | |
| --- a/src/server/database/Database/DatabaseWorkerPool.cpp | |
| +++ b/src/server/database/Database/DatabaseWorkerPool.cpp | |
| @@ -431,6 +431,14 @@ unsigned long DatabaseWorkerPool<T>::EscapeString(char* to, char const* from, un | |
| template <class T> | |
| void DatabaseWorkerPool<T>::Enqueue(SQLOperation* op) | |
| { | |
| +#ifdef TRINITY_DEBUG | |
| + if (_queue->Size() > 250) | |
| + { | |
| + std::ostringstream ss; | |
| + ss << boost::stacktrace::stacktrace(); | |
| + TC_LOG_WARN("sql.performances", "HUGE QUEUE at:\n{}", ss.str()); | |
| + } | |
| +#endif | |
| _queue->Push(op); | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment