[DiscordArchive] Why can I now recompile my core every day? After compiling, my server runs for half a day and then t
[DiscordArchive] Why can I now recompile my core every day? After compiling, my server runs for half a day and then t
Archived author: Krutok • Posted: 2023-05-01T01:41:41.490000+00:00
Original source
Yes, I have the file open because I've already checked what's going on with it and when I search for this sentence, it doesn't find anything
Archived author: Bench • Posted: 2023-05-01T01:42:06.755000+00:00
Original source
L70
atabaseWorkerPool()Archived author: Krutok • Posted: 2023-05-01T01:44:50.147000+00:00
Original source
template <class T>
DatabaseWorkerPool<T>:
atabaseWorkerPool()
: _queue(new ProducerConsumerQueue<SQLOperation*>()),
_async_threads(0), _synch_threads(0)
{
WPFatal(mysql_thread_safe(), "Used MySQL library isn't thread-safe.");
#if defined(LIBMARIADB) && MARIADB_PACKAGE_VERSION_ID >= 30200
WPFatal(mysql_get_client_version() >= MIN_MARIADB_CLIENT_VERSION, "TrinityCore does not support MariaDB versions below " MIN_MARIADB_CLIENT_VERSION_STRING " (found %s id %lu, need id >= %u), please update your MariaDB client library", mysql_get_client_info(), mysql_get_client_version(), MIN_MARIADB_CLIENT_VERSION);
WPFatal(mysql_get_client_version() == MARIADB_PACKAGE_VERSION_ID, "Used MariaDB library version (%s id %lu) does not match the version id used to compile TrinityCore (id %u). Search on forum for TCE00011.", mysql_get_client_info(), mysql_get_client_version(), MARIADB_PACKAGE_VERSION_ID);
#else
WPFatal(mysql_get_client_version() >= MIN_MYSQL_CLIENT_VERSION, "TrinityCore does not support MySQL versions below " MIN_MYSQL_CLIENT_VERSION_STRING " (found %s id %lu, need id >= %u), please update your MySQL client library", mysql_get_client_info(), mysql_get_client_version(), MIN_MYSQL_CLIENT_VERSION);
WPFatal(mysql_get_client_version() == MYSQL_VERSION_ID, "Used MySQL library version (%s id %lu) does not match the version id used to compile TrinityCore (id %u). Search on forum for TCE00011.", mysql_get_client_info(), mysql_get_client_version(), MYSQL_VERSION_ID);
#endif
}
this block comment out?
![[Image: image.png?ex=690bfddd&is=690aac5d&hm=947...756e5ae2c&]](https://cdn.discordapp.com/attachments/376074396915335170/1102410587046158396/image.png?ex=690bfddd&is=690aac5d&hm=947a5d487569637447dd3a583e476cd9c63d60e863822cce8291d59756e5ae2c&)
Archived author: Bench • Posted: 2023-05-01T01:46:05.745000+00:00
Original source
![[Image: image.png?ex=690bfddd&is=690aac5d&hm=947...756e5ae2c&]](https://cdn.discordapp.com/attachments/376074396915335170/1102410587046158396/image.png?ex=690bfddd&is=690aac5d&hm=947a5d487569637447dd3a583e476cd9c63d60e863822cce8291d59756e5ae2c&)
Archived author: Bench • Posted: 2023-05-01T01:46:11.907000+00:00
Original source
Just comment the WPFATAL lines
Archived author: Krutok • Posted: 2023-05-01T01:50:00.782000+00:00
Original source
so: #if defined(LIBMARIADB) && MARIADB_PACKAGE_VERSION_ID >= 30200
/*
WPFatal(mysql_get_client_version() >= MIN_MARIADB_CLIENT_VERSION, "TrinityCore does not support MariaDB versions below " MIN_MARIADB_CLIENT_VERSION_STRING " (found %s id %lu, need id >= %u), please update your MariaDB client library", mysql_get_client_info(), mysql_get_client_version(), MIN_MARIADB_CLIENT_VERSION);
WPFatal(mysql_get_client_version() == MARIADB_PACKAGE_VERSION_ID, "Used MariaDB library version (%s id %lu) does not match the version id used to compile TrinityCore (id %u). Search on forum for TCE00011.", mysql_get_client_info(), mysql_get_client_version(), MARIADB_PACKAGE_VERSION_ID);
*/
Archived author: Bench • Posted: 2023-05-01T01:51:16.993000+00:00
Original source
I commented 66, 69, 70, 72, and 73. Everything with WPFATAL(whatever) in that block
atabaseWorkerPool()Archived author: Krutok • Posted: 2023-05-01T01:55:28.482000+00:00
Original source
``` template <class T>
DatabaseWorkerPool<T>:
atabaseWorkerPool()
: _queue(new ProducerConsumerQueue<SQLOperation*>()),
_async_threads(0), _synch_threads(0)
{
/*
WPFatal(mysql_thread_safe(), "Used MySQL library isn't thread-safe.");
*/
#if defined(LIBMARIADB) && MARIADB_PACKAGE_VERSION_ID >= 30200
/*
WPFatal(mysql_get_client_version() >= MIN_MARIADB_CLIENT_VERSION, "TrinityCore does not support MariaDB versions below " MIN_MARIADB_CLIENT_VERSION_STRING " (found %s id %lu, need id >= %u), please update your MariaDB client library", mysql_get_client_info(), mysql_get_client_version(), MIN_MARIADB_CLIENT_VERSION);
WPFatal(mysql_get_client_version() == MARIADB_PACKAGE_VERSION_ID, "Used MariaDB library version (%s id %lu) does not match the version id used to compile TrinityCore (id %u). Search on forum for TCE00011.", mysql_get_client_info(), mysql_get_client_version(), MARIADB_PACKAGE_VERSION_ID);
*/
#else
/*
WPFatal(mysql_get_client_version() >= MIN_MYSQL_CLIENT_VERSION, "TrinityCore does not support MySQL versions below " MIN_MYSQL_CLIENT_VERSION_STRING " (found %s id %lu, need id >= %u), please update your MySQL client library", mysql_get_client_info(), mysql_get_client_version(), MIN_MYSQL_CLIENT_VERSION);
WPFatal(mysql_get_client_version() == MYSQL_VERSION_ID, "Used MySQL library version (%s id %lu) does not match the version id used to compile TrinityCore (id %u). Search on forum for TCE00011.", mysql_get_client_info(), mysql_get_client_version(), MYSQL_VERSION_ID);
*/
#endif
}
```
Archived author: Bench • Posted: 2023-05-01T01:56:18.928000+00:00
Original source
Yep
Archived author: Krutok • Posted: 2023-05-01T02:26:02.130000+00:00
Original source
thx i have now compiled without the checks