From a5df8ff5ef122cce3c23a0b1b74ac813fc1fe193 Mon Sep 17 00:00:00 2001 From: Anton Tarasenko Date: Sun, 14 Nov 2021 01:12:09 +0700 Subject: [PATCH] Add disk updates to local database --- sources/Data/Database/Local/LocalDatabaseInstance.uc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sources/Data/Database/Local/LocalDatabaseInstance.uc b/sources/Data/Database/Local/LocalDatabaseInstance.uc index 7714efc..f4ee76f 100644 --- a/sources/Data/Database/Local/LocalDatabaseInstance.uc +++ b/sources/Data/Database/Local/LocalDatabaseInstance.uc @@ -98,6 +98,7 @@ protected function Finalizer() // Defaulting variables is not necessary, since this class does not // use object pool. CompleteAllTasks(); + WriteToDisk(); rootRecord = none; _.unreal.OnTick(self).Disconnect(); _.memory.Free(diskUpdateTimer); @@ -345,6 +346,7 @@ public final function Initialize(LocalDatabase config, DBRecord root) if (config.RequiresAcediaStructure()) { CreateAcediaStructure(config); } + ScheduleDiskUpdate(); } // Create JSON object at "/users" if something else (or nothing)