| 171 | } |
| 172 | |
| 173 | void CelestialMasterDatabase::cleanupAndCommit() { |
| 174 | RecursiveMutexLocker locker(m_mutex); |
| 175 | m_chunkCache.cleanup(); |
| 176 | if (m_database.isOpen() && m_commitTimer.timeUp()) { |
| 177 | m_database.commit(); |
| 178 | m_commitTimer.restart(m_commitInterval); |
| 179 | } |
| 180 | } |
| 181 | |
| 182 | bool CelestialMasterDatabase::coordinateValid(CelestialCoordinate const& coordinate) { |
| 183 | RecursiveMutexLocker locker(m_mutex); |