MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / store

Method store

source/game/StarSystemWorldServerThread.cpp:171–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169}
170
171void SystemWorldServerThread::store() {
172 ReadLocker locker(m_mutex);
173 Json store = m_systemWorld->diskStore();
174 locker.unlock();
175
176 Logger::debug("Trigger disk storage for system world {}:{}:{}", m_systemLocation.x(), m_systemLocation.y(), m_systemLocation.z());
177 auto versioningDatabase = Root::singleton().versioningDatabase();
178 auto versionedStore = versioningDatabase->makeCurrentVersionedJson("System", store);
179 VersionedJson::writeFile(versionedStore, m_storageFile);
180}
181
182}

Callers

nothing calls this directly

Calls 8

singletonClass · 0.85
xMethod · 0.80
yMethod · 0.80
zMethod · 0.80
versioningDatabaseMethod · 0.80
diskStoreMethod · 0.45
unlockMethod · 0.45

Tested by

no test coverage detected