Browse Source

Add disk updates to local database

pull/8/head
Anton Tarasenko 3 years ago
parent
commit
a5df8ff5ef
  1. 2
      sources/Data/Database/Local/LocalDatabaseInstance.uc

2
sources/Data/Database/Local/LocalDatabaseInstance.uc

@ -98,6 +98,7 @@ protected function Finalizer()
// Defaulting variables is not necessary, since this class does not // Defaulting variables is not necessary, since this class does not
// use object pool. // use object pool.
CompleteAllTasks(); CompleteAllTasks();
WriteToDisk();
rootRecord = none; rootRecord = none;
_.unreal.OnTick(self).Disconnect(); _.unreal.OnTick(self).Disconnect();
_.memory.Free(diskUpdateTimer); _.memory.Free(diskUpdateTimer);
@ -345,6 +346,7 @@ public final function Initialize(LocalDatabase config, DBRecord root)
if (config.RequiresAcediaStructure()) { if (config.RequiresAcediaStructure()) {
CreateAcediaStructure(config); CreateAcediaStructure(config);
} }
ScheduleDiskUpdate();
} }
// Create JSON object at "/users" if something else (or nothing) // Create JSON object at "/users" if something else (or nothing)

Loading…
Cancel
Save