MCPcopy Create free account
hub / github.com/comaps/comaps / CanDumpToDisk

Method CanDumpToDisk

libs/tracking/archival_manager.cpp:139–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137}
138
139bool ArchivalManager::CanDumpToDisk(size_t neededFreeSpace) const
140{
141 size_t const neededSize = std::max(m_settings.m_minFreeSpaceOnDiskBytes, neededFreeSpace);
142 auto const storageStatus = GetPlatform().GetWritableStorageStatus(neededSize);
143 if (storageStatus != Platform::TStorageStatus::STORAGE_OK)
144 {
145 LOG(LWARNING, ("Can not dump stats to disk. Storage status:", storageStatus));
146 return false;
147 }
148 return CreateTracksDir();
149}
150
151std::chrono::seconds ArchivalManager::ReadTimestamp(std::string const & filePath)
152{

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected