| 116 | } |
| 117 | |
| 118 | bool HttpMetaCache::updateEntry(MetaEntryPtr stale_entry) |
| 119 | { |
| 120 | if (!m_entries.contains(stale_entry->baseId)) |
| 121 | { |
| 122 | qCritical() << "Cannot add entry with unknown base: " |
| 123 | << stale_entry->baseId.toLocal8Bit(); |
| 124 | return false; |
| 125 | } |
| 126 | if (stale_entry->stale) |
| 127 | { |
| 128 | qCritical() << "Cannot add stale entry: " << stale_entry->getFullPath().toLocal8Bit(); |
| 129 | return false; |
| 130 | } |
| 131 | m_entries[stale_entry->baseId].entry_list[stale_entry->relativePath] = stale_entry; |
| 132 | SaveEventually(); |
| 133 | return true; |
| 134 | } |
| 135 | |
| 136 | bool HttpMetaCache::evictEntry(MetaEntryPtr entry) |
| 137 | { |
no test coverage detected