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

Method sync

source/game/StarWorldStorage.cpp:394–404  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

392}
393
394void WorldStorage::sync() {
395 try {
396 for (auto const& pair : m_sectorMetadata)
397 syncSector(pair.first);
398 m_db.commit();
399 } catch (std::exception const& e) {
400 m_db.rollback();
401 m_db.close();
402 throw WorldStorageException("WorldStorage exception during sync", e);
403 }
404}
405
406WorldChunks WorldStorage::readChunks() {
407 try {

Callers

nothing calls this directly

Calls 3

commitMethod · 0.80
rollbackMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected