mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-21 23:48:26 +00:00
Implemented qglobals replacement and/or alternative called "Data Buckets" see changelog for more details
This commit is contained in:
+7
-2
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user