Implemented qglobals replacement and/or alternative called "Data Buckets" see changelog for more details

This commit is contained in:
Akkadius
2018-07-07 23:59:23 -05:00
parent 69f621f361
commit 41ab512349
12 changed files with 234 additions and 3 deletions
+7 -2
View File
@@ -85,6 +85,7 @@ union semun {
#include "console.h"
#include "../common/net/servertalk_server.h"
#include "../zone/data_bucket.h"
ClientList client_list;
GroupLFPList LFPGroupList;
@@ -309,6 +310,9 @@ int main(int argc, char** argv) {
}
}
Log(Logs::General, Logs::World_Server, "Purging expired data buckets...");
database.PurgeAllDeletedDataBuckets();
Log(Logs::General, Logs::World_Server, "Loading zones..");
database.LoadZoneNames();
Log(Logs::General, Logs::World_Server, "Clearing groups..");
@@ -389,6 +393,7 @@ int main(int argc, char** argv) {
Log(Logs::General, Logs::World_Server, "Purging expired instances");
database.PurgeExpiredInstances();
Timer PurgeInstanceTimer(450000);
PurgeInstanceTimer.Start(450000);
@@ -545,9 +550,9 @@ int main(int argc, char** argv) {
client_list.Process();
if (PurgeInstanceTimer.Check())
{
if (PurgeInstanceTimer.Check()) {
database.PurgeExpiredInstances();
database.PurgeAllDeletedDataBuckets();
}
if (EQTimeTimer.Check()) {