| 151 | } |
| 152 | |
| 153 | void WorldStorage::loadSector(Sector sector) { |
| 154 | try { |
| 155 | loadSectorToLevel(sector, SectorLoadLevel::Loaded); |
| 156 | setSectorTimeToLive(sector, randomizedSectorTTL()); |
| 157 | } catch (std::exception const& e) { |
| 158 | m_db.rollback(); |
| 159 | m_db.close(); |
| 160 | throw WorldStorageException(strf("Failed to load sector {}", sector), e); |
| 161 | } |
| 162 | } |
| 163 | |
| 164 | void WorldStorage::activateSector(Sector sector) { |
| 165 | try { |