| 137 | } |
| 138 | |
| 139 | bool 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 | |
| 151 | std::chrono::seconds ArchivalManager::ReadTimestamp(std::string const & filePath) |
| 152 | { |
nothing calls this directly
no test coverage detected